#96871F#96871F

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

Color values

HEX#96871F
RGBrgb(150, 135, 31)
HSLhsl(52, 66%, 35%)
HSVhsv(52, 79%, 59%)
CMYKcmyk(0%, 10%, 79.3%, 41.2%)
CIE-LABlab(56.00, -5.74, 53.59)
CIE-LCHlch(56.00, 53.89, 96.11°)
OKLaboklab(61.87% -0.0218 0.1167)
OKLCHoklch(61.87% 0.119 100.6)
XYZxyz(21.4900, 23.9119, 4.7796)
Luminance0.2391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#96871F #1F2E96
analogous
#964B1F #96871F #69961F
triadic
#96871F #1F9687 #871F96
tetradic
#96871F #1F964B #1F2E96 #961F69
square
#96871F #1F964B #1F2E96 #961F69
split-complementary
#96871F #1F6996 #4B1F96
monochromatic
#312C0A #635915 #96871F #C9B529 #DCCA54

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##96871F#FFFFFF#000000##000000
##96871F1.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)
#958305
Deuteranopia (green-blind)
#998927
Tritanopia (blue-blind)
#A27D74
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #96871f;
/* rgb */ color: rgb(150, 135, 31);
/* oklch */ color: oklch(61.9% 0.119 100.6);
Tailwind
colors: {
  custom: {
    50: '#b9a964',
    500: '#96871f',
    950: '#000000',
  },
}
SCSS
$custom: #96871f;
$custom-light: #b9a964;
$custom-dark: #000000;
JSON
{
  "hex": "#96871f",
  "rgb": {
    "r": 150,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 52.437,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61874,
    "c": 0.11872,
    "h": 100.6
  },
  "luminance": 0.23911
}

Semantic roles & 50–950 ramp

primary
#96871F
secondary
#5260BF
accent
#54E93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #96871F

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

Preview Lab → · Contrast checker → · Palette generator →

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