#9FA22F#9FA22F

#9FA22F is a light, vivid yellow. Relative luminance 0.334; OKLCH L 68.9% C 0.134 H 110.9°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#9FA22F
RGBrgb(159, 162, 47)
HSLhsl(62, 55%, 41%)
HSVhsv(62, 71%, 64%)
CMYKcmyk(1.9%, 0%, 71%, 36.5%)
CIE-LABlab(64.50, -15.34, 56.16)
CIE-LCHlch(64.50, 58.22, 105.28°)
OKLaboklab(68.87% -0.0477 0.1249)
OKLCHoklch(68.87% 0.134 110.9)
XYZxyz(27.7324, 33.4176, 7.6781)
Luminance0.3342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA22F #322FA2
analogous
#A26B2F #9FA22F #65A22F
triadic
#9FA22F #2F9FA2 #A22F9F
tetradic
#9FA22F #2FA26B #322FA2 #A22F65
square
#9FA22F #2FA26B #322FA2 #A22F65
split-complementary
#9FA22F #2F65A2 #6B2FA2
monochromatic
#424313 #707321 #9FA22F #C6C945 #D4D775

Accessibility & contrast

On white

2.73
#9FA22F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#9FA22F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA22F
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA22F#FFFFFF#000000##000000
##9FA22F1.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B1B
Deuteranopia (green-blind)
#B09E38
Tritanopia (blue-blind)
#AA988B
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa22f;
/* rgb */ color: rgb(159, 162, 47);
/* oklch */ color: oklch(68.9% 0.134 110.9);
Tailwind
colors: {
  custom: {
    50: '#bfbd6f',
    500: '#9fa22f',
    950: '#000000',
  },
}
SCSS
$custom: #9fa22f;
$custom-light: #bfbd6f;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa22f",
  "rgb": {
    "r": 159,
    "g": 162,
    "b": 47
  },
  "hsl": {
    "h": 61.565,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.68867,
    "c": 0.13368,
    "h": 110.9
  },
  "luminance": 0.33417
}

Semantic roles & 50–950 ramp

primary
#9FA22F
secondary
#706EBF
accent
#49DE4D
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA22F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9FA22F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva