#97872F#97872F

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

Color values

HEX#97872F
RGBrgb(151, 135, 47)
HSLhsl(51, 53%, 39%)
HSVhsv(51, 69%, 59%)
CMYKcmyk(0%, 10.6%, 68.9%, 40.8%)
CIE-LABlab(56.20, -4.49, 47.59)
CIE-LCHlch(56.20, 47.80, 95.39°)
OKLaboklab(62.09% -0.0166 0.107)
OKLCHoklch(62.09% 0.108 98.8)
XYZxyz(21.9406, 24.1135, 6.1875)
Luminance0.2411 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97872F #2F3F97
analogous
#97532F #97872F #73972F
triadic
#97872F #2F9787 #872F97
tetradic
#97872F #2F9753 #2F3F97 #972F73
square
#97872F #2F9753 #2F3F97 #972F73
split-complementary
#97872F #2F7397 #532F97
monochromatic
#3A3412 #685D20 #97872F #C3AF40 #D2C36E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97872F#FFFFFF#000000##000000
##97872F1.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)
#948323
Deuteranopia (green-blind)
#988934
Tritanopia (blue-blind)
#A37D75
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #97872f;
/* rgb */ color: rgb(151, 135, 47);
/* oklch */ color: oklch(62.1% 0.108 98.8);
Tailwind
colors: {
  custom: {
    50: '#b9a96d',
    500: '#97872f',
    950: '#000000',
  },
}
SCSS
$custom: #97872f;
$custom-light: #b9a96d;
$custom-dark: #000000;
JSON
{
  "hex": "#97872f",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 47
  },
  "hsl": {
    "h": 50.769,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.62091,
    "c": 0.10833,
    "h": 98.8
  },
  "luminance": 0.24112
}

Semantic roles & 50–950 ramp

primary
#97872F
secondary
#6875B9
accent
#62DC4C
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #97872F

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

Preview Lab → · Contrast checker → · Palette generator →

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