#9FA22B#9FA22B

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

Color values

HEX#9FA22B
RGBrgb(159, 162, 43)
HSLhsl(62, 58%, 40%)
HSVhsv(62, 73%, 64%)
CMYKcmyk(1.9%, 0%, 73.5%, 36.5%)
CIE-LABlab(64.47, -15.54, 57.60)
CIE-LCHlch(64.47, 59.66, 105.10°)
OKLaboklab(68.84% -0.0487 0.1272)
OKLCHoklch(68.84% 0.136 110.9)
XYZxyz(27.6554, 33.3867, 7.2725)
Luminance0.3339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA22B #2E2BA2
analogous
#A26A2B #9FA22B #63A22B
triadic
#9FA22B #2B9FA2 #A22B9F
tetradic
#9FA22B #2BA26A #2E2BA2 #A22B63
square
#9FA22B #2BA26A #2E2BA2 #A22B63
split-complementary
#9FA22B #2B63A2 #6A2BA2
monochromatic
#404111 #70721E #9FA22B #C8CC3E #D6D96F

Accessibility & contrast

On white

2.74
#9FA22B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FA22B#FFFFFF#000000##000000
##9FA22B1.002.747.687.68
#FFFFFF2.741.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9fa22b;
/* rgb */ color: rgb(159, 162, 43);
/* oklch */ color: oklch(68.8% 0.136 110.9);
Tailwind
colors: {
  custom: {
    50: '#bfbd6d',
    500: '#9fa22b',
    950: '#000000',
  },
}
SCSS
$custom: #9fa22b;
$custom-light: #bfbd6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa22b",
  "rgb": {
    "r": 159,
    "g": 162,
    "b": 43
  },
  "hsl": {
    "h": 61.513,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.6884,
    "c": 0.13618,
    "h": 110.9
  },
  "luminance": 0.33386
}

Semantic roles & 50–950 ramp

primary
#9FA22B
secondary
#6B69C0
accent
#47E14A
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA22B

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

Preview Lab → · Contrast checker → · Palette generator →

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