#97872A#97872A

#97872A is a light, moderate yellow. Relative luminance 0.241; OKLCH L 62.0% C 0.112 H 99.3°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#97872A
RGBrgb(151, 135, 42)
HSLhsl(51, 56%, 38%)
HSVhsv(51, 72%, 59%)
CMYKcmyk(0%, 10.6%, 72.2%, 40.8%)
CIE-LABlab(56.16, -4.77, 49.66)
CIE-LCHlch(56.16, 49.89, 95.49°)
OKLaboklab(62.05% -0.018 0.1105)
OKLCHoklch(62.05% 0.112 99.3)
XYZxyz(21.8454, 24.0755, 5.6864)
Luminance0.2407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97872A #2A3A97
analogous
#97512A #97872A #70972A
triadic
#97872A #2A9787 #872A97
tetradic
#97872A #2A9751 #2A3A97 #972A70
square
#97872A #2A9751 #2A3A97 #972A70
split-complementary
#97872A #2A7097 #512A97
monochromatic
#37310F #675C1D #97872A #C7B237 #D5C567

Accessibility & contrast

On white

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

On black

5.81
#97872A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97872A
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97872A#FFFFFF#000000##000000
##97872A1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#94831C
Deuteranopia (green-blind)
#998930
Tritanopia (blue-blind)
#A37D74
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #97872a;
/* rgb */ color: rgb(151, 135, 42);
/* oklch */ color: oklch(62.0% 0.112 99.3);
Tailwind
colors: {
  custom: {
    50: '#b9a96a',
    500: '#97872a',
    950: '#000000',
  },
}
SCSS
$custom: #97872a;
$custom-light: #b9a96a;
$custom-dark: #000000;
JSON
{
  "hex": "#97872a",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 42
  },
  "hsl": {
    "h": 51.193,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.62048,
    "c": 0.11196,
    "h": 99.3
  },
  "luminance": 0.24074
}

Semantic roles & 50–950 ramp

primary
#97872A
secondary
#626FBB
accent
#5EE048
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #97872A

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

Preview Lab → · Contrast checker → · Palette generator →

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