#97872D#97872D

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

Color values

HEX#97872D
RGBrgb(151, 135, 45)
HSLhsl(51, 54%, 38%)
HSVhsv(51, 70%, 59%)
CMYKcmyk(0%, 10.6%, 70.2%, 40.8%)
CIE-LABlab(56.19, -4.61, 48.44)
CIE-LCHlch(56.19, 48.65, 95.44°)
OKLaboklab(62.07% -0.0172 0.1085)
OKLCHoklch(62.07% 0.11 99)
XYZxyz(21.9011, 24.0977, 5.9798)
Luminance0.2410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97872D #2D3D97
analogous
#97522D #97872D #72972D
triadic
#97872D #2D9787 #872D97
tetradic
#97872D #2D9752 #2D3D97 #972D72
square
#97872D #2D9752 #2D3D97 #972D72
split-complementary
#97872D #2D7297 #522D97
monochromatic
#393311 #685D1F #97872D #C5B03C #D3C36B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97872D#FFFFFF#000000##000000
##97872D1.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)
#948320
Deuteranopia (green-blind)
#988932
Tritanopia (blue-blind)
#A37D75
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #97872d;
/* rgb */ color: rgb(151, 135, 45);
/* oklch */ color: oklch(62.1% 0.110 99.0);
Tailwind
colors: {
  custom: {
    50: '#b9a96b',
    500: '#97872d',
    950: '#000000',
  },
}
SCSS
$custom: #97872d;
$custom-light: #b9a96b;
$custom-dark: #000000;
JSON
{
  "hex": "#97872d",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 45
  },
  "hsl": {
    "h": 50.943,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.62073,
    "c": 0.10983,
    "h": 99
  },
  "luminance": 0.24097
}

Semantic roles & 50–950 ramp

primary
#97872D
secondary
#6673BA
accent
#61DD4A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #97872D

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

Preview Lab → · Contrast checker → · Palette generator →

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