#9FAF21#9FAF21

#9FAF21 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#9FAF21
RGBrgb(159, 175, 33)
HSLhsl(67, 68%, 41%)
HSVhsv(67, 81%, 69%)
CMYKcmyk(9.1%, 0%, 81.1%, 31.4%)
CIE-LABlab(68.12, -22.54, 64.07)
CIE-LCHlch(68.12, 67.92, 109.38°)
OKLaboklab(71.75% -0.0689 0.1392)
OKLCHoklch(71.75% 0.155 116.3)
XYZxyz(29.9034, 38.1411, 7.2252)
Luminance0.3814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAF21 #3121AF
analogous
#AF7821 #9FAF21 #58AF21
triadic
#9FAF21 #219FAF #AF219F
tetradic
#9FAF21 #21AF78 #3121AF #AF2158
square
#9FAF21 #21AF78 #3121AF #AF2158
split-complementary
#9FAF21 #2158AF #7821AF
monochromatic
#41480E #707C17 #9FAF21 #C6D934 #D5E368

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FAF21#FFFFFF#000000##000000
##9FAF211.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)
#AAA595
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #9faf21;
/* rgb */ color: rgb(159, 175, 33);
/* oklch */ color: oklch(71.8% 0.155 116.3);
Tailwind
colors: {
  custom: {
    50: '#bfc66b',
    500: '#9faf21',
    950: '#000000',
  },
}
SCSS
$custom: #9faf21;
$custom-light: #bfc66b;
$custom-dark: #000000;
JSON
{
  "hex": "#9faf21",
  "rgb": {
    "r": 159,
    "g": 175,
    "b": 33
  },
  "hsl": {
    "h": 66.761,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.71751,
    "c": 0.15527,
    "h": 116.3
  },
  "luminance": 0.38141
}

Semantic roles & 50–950 ramp

primary
#9FAF21
secondary
#6F64C8
accent
#3DEB50
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9FAF21

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

Preview Lab → · Contrast checker → · Palette generator →

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