Skip to content

Citron (#9FA91F)

The hex code for Citron is #9FA91F. It is rgb(159, 169, 31) in RGB, hsl(64, 69%, 39%) in HSL, and about cmyk(6%, 0%, 82%, 34%) in CMYK — a dark yellow. Black text is the more readable choice on this background.

#9FA91F
HEX#9FA91F
RGBrgb(159, 169, 31)
HSLhsl(64, 69%, 39%)
HSVhsv(64, 82%, 66%)
CMYKcmyk(6%, 0%, 82%, 34%)
OKLCHoklch(70.4% 0.15 114)
LABlab(66.70% -15.45 62.43)
LCHlch(66.70% 64.31 103.90)

Colors Closest to Citron

Citron is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every yellow in the library.

#9FA91F Channel Values

How Citron breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 159 · G 169 · B 318-bit channels as sent to the display
HSLH 64° · S 69% · L 39%Easiest model for building lighter and darker variants
HSVH 64° · S 82% · V 66%Matches the picker in most design tools
CMYKC 6% · M 0% · Y 82% · K 34%Approximate ink mix; confirm with an ICC profile before printing
Luminance2.57:1 vs white · 8.17:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Citron background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text2.57:1AA normal AA large AAA normal
TextBlack text8.17:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #9FA91F in the contrast checker.

Colors That Go With Citron

Pairings derived from color-wheel relationships. The complementary color sits opposite Citron; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Citron

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #9FA91F.

How Citron Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#9FA91F
Protanopia#A7A71F
Protanomaly#A4A81F
Deuteranopia#A6A621
Deuteranomaly#A3A720
Tritanopia#A99F9F
Tritanomaly#A5A380
Achromatopsia#A1A1A1

Test a full palette in the color blindness simulator.

Using #9FA91F in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--citron: #9FA91F;
CSS backgroundbackground-color: #9FA91F;
Tailwind configcolors: { 'citron': '#9FA91F' }
SwiftUIColor(red: 0.624, green: 0.663, blue: 0.122)
Android XML<color name="citron">#9FA91F</color>
SVG fillfill="#9FA91F"

More Yellow Colors

Citron sits in the yellowfamily. These are its neighbours across that family's full range, each with its own breakdown.

#9FA91F Frequently Asked Questions

What is the hex code for Citron?

The hex code for Citron is #9FA91F. That is rgb(159, 169, 31) in RGB, hsl(64, 69%, 39%) in HSL, and approximately cmyk(6%, 0%, 82%, 34%) in CMYK.

What is the RGB value of #9FA91F?

#9FA91F is rgb(159, 169, 31) — red 159, green 169, and blue 31 on the 0-255 scale.

What is the CMYK value of #9FA91F?

#9FA91F converts to approximately cmyk(6%, 0%, 82%, 34%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #9FA91F be black or white?

Black text is the more readable choice. #9FA91F scores 2.57:1 against white and 8.17:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #9FA91F as a CSS color keyword?

No. #9FA91F is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is olive (#808000) at a CIE76 distance of 17, which is visibly different.

Open Citron in a Tool

Keep exploring: every yellow in the color library, the guide to shades of yellow, or the full color library.