#97871A#97871A

#97871A is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.9% C 0.121 H 100.2°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#97871A
RGBrgb(151, 135, 26)
HSLhsl(52, 71%, 35%)
HSVhsv(52, 83%, 59%)
CMYKcmyk(0%, 10.6%, 82.8%, 40.8%)
CIE-LABlab(56.07, -5.46, 55.28)
CIE-LCHlch(56.07, 55.55, 95.64°)
OKLaboklab(61.95% -0.0216 0.1193)
OKLCHoklch(61.95% 0.121 100.2)
XYZxyz(21.6140, 23.9829, 4.4678)
Luminance0.2398 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97871A #1A2A97
analogous
#97491A #97871A #69971A
triadic
#97871A #1A9787 #871A97
tetradic
#97871A #1A9749 #1A2A97 #971A69
square
#97871A #1A9749 #1A2A97 #971A69
split-complementary
#97871A #1A6997 #491A97
monochromatic
#2F2A08 #635811 #97871A #CBB623 #E0CD4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97871A#FFFFFF#000000##000000
##97871A1.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)
#958300
Deuteranopia (green-blind)
#998923
Tritanopia (blue-blind)
#A37C73
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #97871a;
/* rgb */ color: rgb(151, 135, 26);
/* oklch */ color: oklch(61.9% 0.121 100.2);
Tailwind
colors: {
  custom: {
    50: '#baa962',
    500: '#97871a',
    950: '#000000',
  },
}
SCSS
$custom: #97871a;
$custom-light: #baa962;
$custom-dark: #000000;
JSON
{
  "hex": "#97871a",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 52.32,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61946,
    "c": 0.12118,
    "h": 100.2
  },
  "luminance": 0.23982
}

Semantic roles & 50–950 ramp

primary
#97871A
secondary
#4B5AC2
accent
#51ED3A
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97871A

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

Preview Lab → · Contrast checker → · Palette generator →

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