#97871E#97871E

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

Color values

HEX#97871E
RGBrgb(151, 135, 30)
HSLhsl(52, 67%, 35%)
HSVhsv(52, 80%, 59%)
CMYKcmyk(0%, 10.6%, 80.1%, 40.8%)
CIE-LABlab(56.09, -5.32, 54.04)
CIE-LCHlch(56.09, 54.30, 95.62°)
OKLaboklab(61.97% -0.0208 0.1174)
OKLCHoklch(61.97% 0.119 100.1)
XYZxyz(21.6619, 24.0021, 4.7199)
Luminance0.2400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97871E #1E2E97
analogous
#974A1E #97871E #6A971E
triadic
#97871E #1E9787 #871E97
tetradic
#97871E #1E974A #1E2E97 #971E6A
square
#97871E #1E974A #1E2E97 #971E6A
split-complementary
#97871E #1E6A97 #4A1E97
monochromatic
#312C0A #645914 #97871E #CAB528 #DDCA53

Accessibility & contrast

On white

3.62
#97871E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#97871E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #97871E
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97871E#FFFFFF#000000##000000
##97871E1.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)
#958303
Deuteranopia (green-blind)
#998926
Tritanopia (blue-blind)
#A37C73
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #97871e;
/* rgb */ color: rgb(151, 135, 30);
/* oklch */ color: oklch(62.0% 0.119 100.1);
Tailwind
colors: {
  custom: {
    50: '#b9a964',
    500: '#97871e',
    950: '#000000',
  },
}
SCSS
$custom: #97871e;
$custom-light: #b9a964;
$custom-dark: #000000;
JSON
{
  "hex": "#97871e",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 52.066,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61967,
    "c": 0.11923,
    "h": 100.1
  },
  "luminance": 0.24001
}

Semantic roles & 50–950 ramp

primary
#97871E
secondary
#5160C0
accent
#55EA3E
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97871E

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

Preview Lab → · Contrast checker → · Palette generator →

#97871E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva