#96871C#96871C

#96871C is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.9% C 0.120 H 100.8°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#96871C
RGBrgb(150, 135, 28)
HSLhsl(53, 69%, 35%)
HSVhsv(53, 81%, 59%)
CMYKcmyk(0%, 10%, 81.3%, 41.2%)
CIE-LABlab(55.98, -5.85, 54.55)
CIE-LCHlch(55.98, 54.86, 96.12°)
OKLaboklab(61.86% -0.0224 0.1182)
OKLCHoklch(61.86% 0.12 100.8)
XYZxyz(21.4523, 23.8969, 4.5810)
Luminance0.2390 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#96871C #1C2B96
analogous
#964A1C #96871C #68961C
triadic
#96871C #1C9687 #871C96
tetradic
#96871C #1C964A #1C2B96 #961C68
square
#96871C #1C964A #1C2B96 #961C68
split-complementary
#96871C #1C6896 #4A1C96
monochromatic
#2F2A09 #625912 #96871C #CAB526 #DECC4E

Accessibility & contrast

On white

3.63
#96871C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#96871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #96871C
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##96871C#FFFFFF#000000##000000
##96871C1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#998924
Tritanopia (blue-blind)
#A27D73
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #96871c;
/* rgb */ color: rgb(150, 135, 28);
/* oklch */ color: oklch(61.9% 0.120 100.8);
Tailwind
colors: {
  custom: {
    50: '#b9a963',
    500: '#96871c',
    950: '#000000',
  },
}
SCSS
$custom: #96871c;
$custom-light: #b9a963;
$custom-dark: #000000;
JSON
{
  "hex": "#96871c",
  "rgb": {
    "r": 150,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 52.623,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.61857,
    "c": 0.12026,
    "h": 100.8
  },
  "luminance": 0.23896
}

Semantic roles & 50–950 ramp

primary
#96871C
secondary
#4D5BC1
accent
#52EB3C
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #96871C

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

Preview Lab → · Contrast checker → · Palette generator →

#96871C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva