#97872B#97872B

#97872B is a light, moderate yellow. Relative luminance 0.241; OKLCH L 62.1% C 0.111 H 99.2°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#97872B
RGBrgb(151, 135, 43)
HSLhsl(51, 56%, 38%)
HSVhsv(51, 72%, 59%)
CMYKcmyk(0%, 10.6%, 71.5%, 40.8%)
CIE-LABlab(56.17, -4.72, 49.26)
CIE-LCHlch(56.17, 49.48, 95.47°)
OKLaboklab(62.06% -0.0178 0.1098)
OKLCHoklch(62.06% 0.111 99.2)
XYZxyz(21.8635, 24.0827, 5.7818)
Luminance0.2408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97872B #2B3B97
analogous
#97512B #97872B #71972B
triadic
#97872B #2B9787 #872B97
tetradic
#97872B #2B9751 #2B3B97 #972B71
square
#97872B #2B9751 #2B3B97 #972B71
split-complementary
#97872B #2B7197 #512B97
monochromatic
#383210 #675C1D #97872B #C7B239 #D4C468

Accessibility & contrast

On white

3.61
#97872B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#97872B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97872B
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97872B#FFFFFF#000000##000000
##97872B1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#94831D
Deuteranopia (green-blind)
#998931
Tritanopia (blue-blind)
#A37D75
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #97872b;
/* rgb */ color: rgb(151, 135, 43);
/* oklch */ color: oklch(62.1% 0.111 99.2);
Tailwind
colors: {
  custom: {
    50: '#b9a96a',
    500: '#97872b',
    950: '#000000',
  },
}
SCSS
$custom: #97872b;
$custom-light: #b9a96a;
$custom-dark: #000000;
JSON
{
  "hex": "#97872b",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 43
  },
  "hsl": {
    "h": 51.111,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.62057,
    "c": 0.11127,
    "h": 99.2
  },
  "luminance": 0.24082
}

Semantic roles & 50–950 ramp

primary
#97872B
secondary
#6370BB
accent
#5FDF49
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #97872B

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

Preview Lab → · Contrast checker → · Palette generator →

#97872B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva