#9EB221#9EB221

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

Color values

HEX#9EB221
RGBrgb(158, 178, 33)
HSLhsl(68, 69%, 41%)
HSVhsv(68, 81%, 70%)
CMYKcmyk(11.2%, 0%, 81.5%, 30.2%)
CIE-LABlab(68.91, -24.44, 64.73)
CIE-LCHlch(68.91, 69.19, 110.69°)
OKLaboklab(72.36% -0.0741 0.1406)
OKLCHoklch(72.36% 0.159 117.8)
XYZxyz(30.2962, 39.2200, 7.4128)
Luminance0.3922 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9EB221 #3521B2
analogous
#B27E21 #9EB221 #56B221
triadic
#9EB221 #219EB2 #B2219E
tetradic
#9EB221 #21B27E #3521B2 #B22156
square
#9EB221 #21B27E #3521B2 #B22156
split-complementary
#9EB221 #2156B2 #7E21B2
monochromatic
#424B0E #707E17 #9EB221 #C3DA36 #D3E36A

Accessibility & contrast

On white

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

On black

8.84
#9EB221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9EB221
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9EB221#FFFFFF#000000##000000
##9EB2211.002.378.848.84
#FFFFFF2.371.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA800
Deuteranopia (green-blind)
#BCA930
Tritanopia (blue-blind)
#A8A898
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #9eb221;
/* rgb */ color: rgb(158, 178, 33);
/* oklch */ color: oklch(72.4% 0.159 117.8);
Tailwind
colors: {
  custom: {
    50: '#bfc96b',
    500: '#9eb221',
    950: '#000000',
  },
}
SCSS
$custom: #9eb221;
$custom-light: #bfc96b;
$custom-dark: #000000;
JSON
{
  "hex": "#9eb221",
  "rgb": {
    "r": 158,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 68.276,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72365,
    "c": 0.15892,
    "h": 117.8
  },
  "luminance": 0.3922
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9EB221

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

Preview Lab → · Contrast checker → · Palette generator →

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