#9EAC21#9EAC21

#9EAC21 is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.0% C 0.152 H 115.6°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#9EAC21
RGBrgb(158, 172, 33)
HSLhsl(66, 68%, 40%)
HSVhsv(66, 81%, 67%)
CMYKcmyk(8.1%, 0%, 80.8%, 32.5%)
CIE-LABlab(67.19, -21.48, 63.22)
CIE-LCHlch(67.19, 66.77, 108.76°)
OKLaboklab(70.98% -0.0659 0.1374)
OKLCHoklch(70.98% 0.152 115.6)
XYZxyz(29.1284, 36.8844, 7.0235)
Luminance0.3688 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9EAC21 #2F21AC
analogous
#AC7421 #9EAC21 #59AC21
triadic
#9EAC21 #219EAC #AC219E
tetradic
#9EAC21 #21AC74 #2F21AC #AC2159
square
#9EAC21 #21AC74 #2F21AC #AC2159
split-complementary
#9EAC21 #2159AC #7421AC
monochromatic
#40450D #6F7917 #9EAC21 #C7D832 #D5E266

Accessibility & contrast

On white

2.51
#9EAC21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#9EAC21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9EAC21
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9EAC21#FFFFFF#000000##000000
##9EAC211.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#B8A52F
Tritanopia (blue-blind)
#A9A293
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #9eac21;
/* rgb */ color: rgb(158, 172, 33);
/* oklch */ color: oklch(71.0% 0.152 115.6);
Tailwind
colors: {
  custom: {
    50: '#bec46a',
    500: '#9eac21',
    950: '#000000',
  },
}
SCSS
$custom: #9eac21;
$custom-light: #bec46a;
$custom-dark: #000000;
JSON
{
  "hex": "#9eac21",
  "rgb": {
    "r": 158,
    "g": 172,
    "b": 33
  },
  "hsl": {
    "h": 66.043,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.70982,
    "c": 0.15235,
    "h": 115.6
  },
  "luminance": 0.36884
}

Semantic roles & 50–950 ramp

primary
#9EAC21
secondary
#6C62C7
accent
#3DEB4F
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9EAC21

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

Preview Lab → · Contrast checker → · Palette generator →

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