#9DAA21#9DAA21

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

Color values

HEX#9DAA21
RGBrgb(157, 170, 33)
HSLhsl(66, 67%, 40%)
HSVhsv(66, 81%, 67%)
CMYKcmyk(7.6%, 0%, 80.6%, 33.3%)
CIE-LABlab(66.54, -20.91, 62.62)
CIE-LCHlch(66.54, 66.02, 108.46°)
OKLaboklab(70.44% -0.0643 0.1361)
OKLCHoklch(70.44% 0.151 115.3)
XYZxyz(28.5547, 36.0279, 6.8884)
Luminance0.3603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DAA21 #2E21AA
analogous
#AA7221 #9DAA21 #59AA21
triadic
#9DAA21 #219DAA #AA219D
tetradic
#9DAA21 #21AA72 #2E21AA #AA2159
square
#9DAA21 #21AA72 #2E21AA #AA2159
split-complementary
#9DAA21 #2159AA #7221AA
monochromatic
#3E430D #6E7717 #9DAA21 #C7D731 #D5E164

Accessibility & contrast

On white

2.56
#9DAA21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.21
#9DAA21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9DAA21
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9DAA21#FFFFFF#000000##000000
##9DAA211.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A100
Deuteranopia (green-blind)
#B6A32F
Tritanopia (blue-blind)
#A8A091
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #9daa21;
/* rgb */ color: rgb(157, 170, 33);
/* oklch */ color: oklch(70.4% 0.151 115.3);
Tailwind
colors: {
  custom: {
    50: '#bec36a',
    500: '#9daa21',
    950: '#000000',
  },
}
SCSS
$custom: #9daa21;
$custom-light: #bec36a;
$custom-dark: #000000;
JSON
{
  "hex": "#9daa21",
  "rgb": {
    "r": 157,
    "g": 170,
    "b": 33
  },
  "hsl": {
    "h": 65.693,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.70442,
    "c": 0.15053,
    "h": 115.3
  },
  "luminance": 0.36027
}

Semantic roles & 50–950 ramp

primary
#9DAA21
secondary
#6A61C6
accent
#3DEA4E
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9DAA21

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

Preview Lab → · Contrast checker → · Palette generator →

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