#9DAC21#9DAC21

#9DAC21 is a light, vivid yellow. Relative luminance 0.368; OKLCH L 70.9% C 0.153 H 116.0°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#9DAC21
RGBrgb(157, 172, 33)
HSLhsl(66, 68%, 40%)
HSVhsv(66, 81%, 67%)
CMYKcmyk(8.7%, 0%, 80.8%, 32.5%)
CIE-LABlab(67.11, -21.91, 63.13)
CIE-LCHlch(67.11, 66.82, 109.14°)
OKLaboklab(70.9% -0.067 0.1372)
OKLCHoklch(70.9% 0.153 116)
XYZxyz(28.9325, 36.7834, 7.0143)
Luminance0.3678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DAC21 #3021AC
analogous
#AC7621 #9DAC21 #57AC21
triadic
#9DAC21 #219DAC #AC219D
tetradic
#9DAC21 #21AC76 #3021AC #AC2157
square
#9DAC21 #21AC76 #3021AC #AC2157
split-complementary
#9DAC21 #2157AC #7621AC
monochromatic
#3F450D #6E7917 #9DAC21 #C6D832 #D4E266

Accessibility & contrast

On white

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

On black

8.36
#9DAC21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9DAC21
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9DAC21#FFFFFF#000000##000000
##9DAC211.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9dac21;
/* rgb */ color: rgb(157, 172, 33);
/* oklch */ color: oklch(70.9% 0.153 116.0);
Tailwind
colors: {
  custom: {
    50: '#bec46a',
    500: '#9dac21',
    950: '#000000',
  },
}
SCSS
$custom: #9dac21;
$custom-light: #bec46a;
$custom-dark: #000000;
JSON
{
  "hex": "#9dac21",
  "rgb": {
    "r": 157,
    "g": 172,
    "b": 33
  },
  "hsl": {
    "h": 66.475,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.70902,
    "c": 0.1527,
    "h": 116
  },
  "luminance": 0.36783
}

Semantic roles & 50–950 ramp

primary
#9DAC21
secondary
#6D62C7
accent
#3DEB50
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9DAC21

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

Preview Lab → · Contrast checker → · Palette generator →

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