#9EAB21#9EAB21

#9EAB21 is a light, vivid yellow. Relative luminance 0.365; OKLCH L 70.8% C 0.151 H 115.3°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#9EAB21
RGBrgb(158, 171, 33)
HSLhsl(66, 68%, 40%)
HSVhsv(66, 81%, 67%)
CMYKcmyk(7.6%, 0%, 80.7%, 32.9%)
CIE-LABlab(66.90, -20.98, 62.97)
CIE-LCHlch(66.90, 66.37, 108.42°)
OKLaboklab(70.75% -0.0645 0.1368)
OKLCHoklch(70.75% 0.151 115.3)
XYZxyz(28.9388, 36.5052, 6.9603)
Luminance0.3650 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9EAB21 #2E21AB
analogous
#AB7321 #9EAB21 #59AB21
triadic
#9EAB21 #219EAB #AB219E
tetradic
#9EAB21 #21AB73 #2E21AB #AB2159
square
#9EAB21 #21AB73 #2E21AB #AB2159
split-complementary
#9EAB21 #2159AB #7321AB
monochromatic
#3F440D #6F7817 #9EAB21 #C8D732 #D6E165

Accessibility & contrast

On white

2.53
#9EAB21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#9EAB21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9EAB21
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9EAB21#FFFFFF#000000##000000
##9EAB211.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#B7A42F
Tritanopia (blue-blind)
#A9A192
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #9eab21;
/* rgb */ color: rgb(158, 171, 33);
/* oklch */ color: oklch(70.8% 0.151 115.3);
Tailwind
colors: {
  custom: {
    50: '#bec36a',
    500: '#9eab21',
    950: '#000000',
  },
}
SCSS
$custom: #9eab21;
$custom-light: #bec36a;
$custom-dark: #000000;
JSON
{
  "hex": "#9eab21",
  "rgb": {
    "r": 158,
    "g": 171,
    "b": 33
  },
  "hsl": {
    "h": 65.652,
    "s": 67.647,
    "l": 40
  },
  "oklch": {
    "l": 0.70752,
    "c": 0.15127,
    "h": 115.3
  },
  "luminance": 0.36505
}

Semantic roles & 50–950 ramp

primary
#9EAB21
secondary
#6B61C7
accent
#3DEB4E
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9EAB21

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

Preview Lab → · Contrast checker → · Palette generator →

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