#9DAB31#9DAB31

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

Color values

HEX#9DAB31
RGBrgb(157, 171, 49)
HSLhsl(67, 55%, 43%)
HSVhsv(67, 71%, 67%)
CMYKcmyk(8.2%, 0%, 71.3%, 32.9%)
CIE-LABlab(66.91, -20.69, 57.73)
CIE-LCHlch(66.91, 61.32, 109.71°)
OKLaboklab(70.77% -0.0623 0.1286)
OKLCHoklch(70.77% 0.143 115.9)
XYZxyz(29.0227, 36.5161, 8.4246)
Luminance0.3652 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DAB31 #3F31AB
analogous
#AB7C31 #9DAB31 #60AB31
triadic
#9DAB31 #319DAB #AB319D
tetradic
#9DAB31 #31AB7C #3F31AB #AB3160
square
#9DAB31 #31AB7C #3F31AB #AB3160
split-complementary
#9DAB31 #3160AB #7C31AB
monochromatic
#464C16 #717B23 #9DAB31 #BDCC4D #CFDA7D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9DAB31#FFFFFF#000000##000000
##9DAB311.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)
#B7A21C
Deuteranopia (green-blind)
#B6A43B
Tritanopia (blue-blind)
#A7A193
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #9dab31;
/* rgb */ color: rgb(157, 171, 49);
/* oklch */ color: oklch(70.8% 0.143 115.9);
Tailwind
colors: {
  custom: {
    50: '#bdc371',
    500: '#9dab31',
    950: '#000000',
  },
}
SCSS
$custom: #9dab31;
$custom-light: #bdc371;
$custom-dark: #000000;
JSON
{
  "hex": "#9dab31",
  "rgb": {
    "r": 157,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 66.885,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.70767,
    "c": 0.14288,
    "h": 115.9
  },
  "luminance": 0.36516
}

Semantic roles & 50–950 ramp

primary
#9DAB31
secondary
#7E75C2
accent
#49DF5A
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9DAB31

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

Preview Lab → · Contrast checker → · Palette generator →

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