#9FB221#9FB221

#9FB221 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 72.4% C 0.159 H 117.4°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#9FB221
RGBrgb(159, 178, 33)
HSLhsl(68, 69%, 41%)
HSVhsv(68, 81%, 70%)
CMYKcmyk(10.7%, 0%, 81.5%, 30.2%)
CIE-LABlab(68.98, -24.02, 64.82)
CIE-LCHlch(68.98, 69.13, 110.33°)
OKLaboklab(72.44% -0.073 0.1408)
OKLCHoklch(72.44% 0.159 117.4)
XYZxyz(30.4938, 39.3219, 7.4220)
Luminance0.3932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FB221 #3421B2
analogous
#B27D21 #9FB221 #57B221
triadic
#9FB221 #219FB2 #B2219F
tetradic
#9FB221 #21B27D #3421B2 #B22157
square
#9FB221 #21B27D #3421B2 #B22157
split-complementary
#9FB221 #2157B2 #7D21B2
monochromatic
#434B0E #717E17 #9FB221 #C4DA36 #D3E36A

Accessibility & contrast

On white

2.37
#9FB221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#9FB221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FB221
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FB221#FFFFFF#000000##000000
##9FB2211.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#BDA930
Tritanopia (blue-blind)
#A9A898
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #9fb221;
/* rgb */ color: rgb(159, 178, 33);
/* oklch */ color: oklch(72.4% 0.159 117.4);
Tailwind
colors: {
  custom: {
    50: '#bfc86b',
    500: '#9fb221',
    950: '#000000',
  },
}
SCSS
$custom: #9fb221;
$custom-light: #bfc86b;
$custom-dark: #000000;
JSON
{
  "hex": "#9fb221",
  "rgb": {
    "r": 159,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 67.862,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72442,
    "c": 0.15855,
    "h": 117.4
  },
  "luminance": 0.39322
}

Semantic roles & 50–950 ramp

primary
#9FB221
secondary
#7366C9
accent
#3CEC53
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9FB221

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

Preview Lab → · Contrast checker → · Palette generator →

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