#96872F#96872F

#96872F is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 62.0% C 0.108 H 99.5°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#96872F
RGBrgb(150, 135, 47)
HSLhsl(51, 52%, 39%)
HSVhsv(51, 69%, 59%)
CMYKcmyk(0%, 10%, 68.7%, 41.2%)
CIE-LABlab(56.11, -4.95, 47.46)
CIE-LCHlch(56.11, 47.72, 95.95°)
OKLaboklab(61.99% -0.0179 0.1068)
OKLCHoklch(61.99% 0.108 99.5)
XYZxyz(21.7557, 24.0182, 6.1788)
Luminance0.2402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#96872F #2F3E96
analogous
#96532F #96872F #71962F
triadic
#96872F #2F9687 #872F96
tetradic
#96872F #2F9653 #2F3E96 #962F71
square
#96872F #2F9653 #2F3E96 #962F71
split-complementary
#96872F #2F7196 #532F96
monochromatic
#393312 #675D20 #96872F #C3B03F #D2C36E

Accessibility & contrast

On white

3.62
#96872F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#96872F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #96872F
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##96872F#FFFFFF#000000##000000
##96872F1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#948323
Deuteranopia (green-blind)
#988934
Tritanopia (blue-blind)
#A27D75
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #96872f;
/* rgb */ color: rgb(150, 135, 47);
/* oklch */ color: oklch(62.0% 0.108 99.5);
Tailwind
colors: {
  custom: {
    50: '#b8a96c',
    500: '#96872f',
    950: '#000000',
  },
}
SCSS
$custom: #96872f;
$custom-light: #b8a96c;
$custom-dark: #000000;
JSON
{
  "hex": "#96872f",
  "rgb": {
    "r": 150,
    "g": 135,
    "b": 47
  },
  "hsl": {
    "h": 51.262,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.61993,
    "c": 0.10828,
    "h": 99.5
  },
  "luminance": 0.24017
}

Semantic roles & 50–950 ramp

primary
#96872F
secondary
#6874B9
accent
#61DC4C
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #96872F

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

Preview Lab → · Contrast checker → · Palette generator →

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