#9FAF22#9FAF22

#9FAF22 is a light, vivid yellow. Relative luminance 0.381; OKLCH L 71.8% C 0.155 H 116.3°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#9FAF22
RGBrgb(159, 175, 34)
HSLhsl(67, 67%, 41%)
HSVhsv(67, 81%, 69%)
CMYKcmyk(9.1%, 0%, 80.6%, 31.4%)
CIE-LABlab(68.13, -22.50, 63.80)
CIE-LCHlch(68.13, 67.65, 109.43°)
OKLaboklab(71.76% -0.0687 0.1387)
OKLCHoklch(71.76% 0.155 116.3)
XYZxyz(29.9176, 38.1468, 7.3001)
Luminance0.3815 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAF22 #3222AF
analogous
#AF7822 #9FAF22 #58AF22
triadic
#9FAF22 #229FAF #AF229F
tetradic
#9FAF22 #22AF78 #3222AF #AF2258
square
#9FAF22 #22AF78 #3222AF #AF2258
split-complementary
#9FAF22 #2258AF #7822AF
monochromatic
#42490E #707C18 #9FAF22 #C6D836 #D4E269

Accessibility & contrast

On white

2.43
#9FAF22 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.63
#9FAF22 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAF22
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAF22#FFFFFF#000000##000000
##9FAF221.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA500
Deuteranopia (green-blind)
#BAA730
Tritanopia (blue-blind)
#AAA596
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #9faf22;
/* rgb */ color: rgb(159, 175, 34);
/* oklch */ color: oklch(71.8% 0.155 116.3);
Tailwind
colors: {
  custom: {
    50: '#bfc66b',
    500: '#9faf22',
    950: '#000000',
  },
}
SCSS
$custom: #9faf22;
$custom-light: #bfc66b;
$custom-dark: #000000;
JSON
{
  "hex": "#9faf22",
  "rgb": {
    "r": 159,
    "g": 175,
    "b": 34
  },
  "hsl": {
    "h": 66.809,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.71756,
    "c": 0.15483,
    "h": 116.3
  },
  "luminance": 0.38146
}

Semantic roles & 50–950 ramp

primary
#9FAF22
secondary
#7065C8
accent
#3DEA51
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9FAF22

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

Preview Lab → · Contrast checker → · Palette generator →

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