#9FAB31#9FAB31

#9FAB31 is a light, vivid yellow. Relative luminance 0.367; OKLCH L 70.9% C 0.142 H 115.0°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#9FAB31
RGBrgb(159, 171, 49)
HSLhsl(66, 55%, 43%)
HSVhsv(66, 71%, 67%)
CMYKcmyk(7%, 0%, 71.3%, 32.9%)
CIE-LABlab(67.07, -19.83, 57.93)
CIE-LCHlch(67.07, 61.23, 108.90°)
OKLaboklab(70.93% -0.0601 0.1289)
OKLCHoklch(70.93% 0.142 115)
XYZxyz(29.4162, 36.7190, 8.4430)
Luminance0.3672 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAB31 #3D31AB
analogous
#AB7A31 #9FAB31 #62AB31
triadic
#9FAB31 #319FAB #AB319F
tetradic
#9FAB31 #31AB7A #3D31AB #AB3162
square
#9FAB31 #31AB7A #3D31AB #AB3162
split-complementary
#9FAB31 #3162AB #7A31AB
monochromatic
#474C16 #737B23 #9FAB31 #C0CC4D #D1DA7D

Accessibility & contrast

On white

2.52
#9FAB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#9FAB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAB31
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAB31#FFFFFF#000000##000000
##9FAB311.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A21C
Deuteranopia (green-blind)
#B7A43B
Tritanopia (blue-blind)
#A9A193
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #9fab31;
/* rgb */ color: rgb(159, 171, 49);
/* oklch */ color: oklch(70.9% 0.142 115.0);
Tailwind
colors: {
  custom: {
    50: '#bfc371',
    500: '#9fab31',
    950: '#000000',
  },
}
SCSS
$custom: #9fab31;
$custom-light: #bfc371;
$custom-dark: #000000;
JSON
{
  "hex": "#9fab31",
  "rgb": {
    "r": 159,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 65.902,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.70928,
    "c": 0.14224,
    "h": 115
  },
  "luminance": 0.36718
}

Semantic roles & 50–950 ramp

primary
#9FAB31
secondary
#7D75C2
accent
#49DF58
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FAB31

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

Preview Lab → · Contrast checker → · Palette generator →

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