#9CAB31#9CAB31

#9CAB31 is a light, vivid yellow. Relative luminance 0.364; OKLCH L 70.7% C 0.143 H 116.3°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#9CAB31
RGBrgb(156, 171, 49)
HSLhsl(67, 55%, 43%)
HSVhsv(67, 71%, 67%)
CMYKcmyk(8.8%, 0%, 71.3%, 32.9%)
CIE-LABlab(66.84, -21.11, 57.63)
CIE-LCHlch(66.84, 61.37, 110.12°)
OKLaboklab(70.69% -0.0635 0.1284)
OKLCHoklch(70.69% 0.143 116.3)
XYZxyz(28.8283, 36.4159, 8.4154)
Luminance0.3641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CAB31 #4031AB
analogous
#AB7D31 #9CAB31 #5FAB31
triadic
#9CAB31 #319CAB #AB319C
tetradic
#9CAB31 #31AB7D #4031AB #AB315F
square
#9CAB31 #31AB7D #4031AB #AB315F
split-complementary
#9CAB31 #315FAB #7D31AB
monochromatic
#454C16 #717B23 #9CAB31 #BCCC4D #CEDA7D

Accessibility & contrast

On white

2.54
#9CAB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#9CAB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9CAB31
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9CAB31#FFFFFF#000000##000000
##9CAB311.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9cab31;
/* rgb */ color: rgb(156, 171, 49);
/* oklch */ color: oklch(70.7% 0.143 116.3);
Tailwind
colors: {
  custom: {
    50: '#bcc371',
    500: '#9cab31',
    950: '#000000',
  },
}
SCSS
$custom: #9cab31;
$custom-light: #bcc371;
$custom-dark: #000000;
JSON
{
  "hex": "#9cab31",
  "rgb": {
    "r": 156,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 67.377,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.70687,
    "c": 0.14322,
    "h": 116.3
  },
  "luminance": 0.36415
}

Semantic roles & 50–950 ramp

primary
#9CAB31
secondary
#7F75C2
accent
#49DF5B
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121208
muted
#81817B

Preview Lab

Preview with #9CAB31

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

Preview Lab → · Contrast checker → · Palette generator →

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