#9EA821#9EA821

#9EA821 is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.1% C 0.148 H 114.1°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#9EA821
RGBrgb(158, 168, 33)
HSLhsl(64, 67%, 39%)
HSVhsv(64, 80%, 66%)
CMYKcmyk(6%, 0%, 80.4%, 34.1%)
CIE-LABlab(66.05, -19.47, 62.21)
CIE-LCHlch(66.05, 65.19, 107.37°)
OKLaboklab(70.06% -0.0604 0.1352)
OKLCHoklch(70.06% 0.148 114.1)
XYZxyz(28.3786, 35.3848, 6.7736)
Luminance0.3538 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9EA821 #2B21A8
analogous
#A86E21 #9EA821 #5BA821
triadic
#9EA821 #219EA8 #A8219E
tetradic
#9EA821 #21A86E #2B21A8 #A8215B
square
#9EA821 #21A86E #2B21A8 #A8215B
split-complementary
#9EA821 #215BA8 #6E21A8
monochromatic
#3E420D #6E7517 #9EA821 #CAD630 #D7E063

Accessibility & contrast

On white

2.60
#9EA821 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#9EA821 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9EA821
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9EA821#FFFFFF#000000##000000
##9EA8211.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B59F00
Deuteranopia (green-blind)
#B4A22E
Tritanopia (blue-blind)
#A99E90
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #9ea821;
/* rgb */ color: rgb(158, 168, 33);
/* oklch */ color: oklch(70.1% 0.148 114.1);
Tailwind
colors: {
  custom: {
    50: '#bec16a',
    500: '#9ea821',
    950: '#000000',
  },
}
SCSS
$custom: #9ea821;
$custom-light: #bec16a;
$custom-dark: #000000;
JSON
{
  "hex": "#9ea821",
  "rgb": {
    "r": 158,
    "g": 168,
    "b": 33
  },
  "hsl": {
    "h": 64.444,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.70064,
    "c": 0.14808,
    "h": 114.1
  },
  "luminance": 0.35384
}

Semantic roles & 50–950 ramp

primary
#9EA821
secondary
#675FC5
accent
#3EEA4B
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9EA821

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

Preview Lab → · Contrast checker → · Palette generator →

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