#97871F#97871F

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

Color values

HEX#97871F
RGBrgb(151, 135, 31)
HSLhsl(52, 66%, 36%)
HSVhsv(52, 79%, 59%)
CMYKcmyk(0%, 10.6%, 79.5%, 40.8%)
CIE-LABlab(56.09, -5.28, 53.71)
CIE-LCHlch(56.09, 53.97, 95.61°)
OKLaboklab(61.97% -0.0206 0.1169)
OKLCHoklch(61.97% 0.119 100)
XYZxyz(21.6749, 24.0072, 4.7882)
Luminance0.2401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97871F #1F2F97
analogous
#974B1F #97871F #6B971F
triadic
#97871F #1F9787 #871F97
tetradic
#97871F #1F974B #1F2F97 #971F6B
square
#97871F #1F974B #1F2F97 #971F6B
split-complementary
#97871F #1F6B97 #4B1F97
monochromatic
#312C0A #645A15 #97871F #CAB429 #DCCA54

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##97871F#FFFFFF#000000##000000
##97871F1.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)
#958305
Deuteranopia (green-blind)
#998927
Tritanopia (blue-blind)
#A37C74
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #97871f;
/* rgb */ color: rgb(151, 135, 31);
/* oklch */ color: oklch(62.0% 0.119 100.0);
Tailwind
colors: {
  custom: {
    50: '#b9a964',
    500: '#97871f',
    950: '#000000',
  },
}
SCSS
$custom: #97871f;
$custom-light: #b9a964;
$custom-dark: #000000;
JSON
{
  "hex": "#97871f",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 52,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61973,
    "c": 0.1187,
    "h": 100
  },
  "luminance": 0.24006
}

Semantic roles & 50–950 ramp

primary
#97871F
secondary
#5261BF
accent
#56E93F
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #97871F

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

Preview Lab → · Contrast checker → · Palette generator →

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