#80871F#80871F

#80871F is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 59.8% C 0.122 H 113.5°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#80871F
RGBrgb(128, 135, 31)
HSLhsl(64, 63%, 33%)
HSVhsv(64, 77%, 53%)
CMYKcmyk(5.2%, 0%, 77%, 47.1%)
CIE-LABlab(54.04, -15.78, 51.07)
CIE-LCHlch(54.04, 53.45, 107.17°)
OKLaboklab(59.84% -0.0487 0.1123)
OKLCHoklch(59.84% 0.122 113.5)
XYZxyz(17.8139, 22.0165, 4.6073)
Luminance0.2202 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#80871F #261F87
analogous
#875A1F #80871F #4C871F
triadic
#80871F #1F8087 #871F80
tetradic
#80871F #1F875A #261F87 #871F4C
square
#80871F #1F875A #261F87 #871F4C
split-complementary
#80871F #1F4C87 #5A1F87
monochromatic
#222308 #515514 #80871F #AFB92A #CCD64B

Accessibility & contrast

On white

3.89
#80871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#80871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #80871F
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##80871F#FFFFFF#000000##000000
##80871F1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#918006
Deuteranopia (green-blind)
#918228
Tritanopia (blue-blind)
#897F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #80871f;
/* rgb */ color: rgb(128, 135, 31);
/* oklch */ color: oklch(59.8% 0.122 113.5);
Tailwind
colors: {
  custom: {
    50: '#a8a964',
    500: '#80871f',
    950: '#000000',
  },
}
SCSS
$custom: #80871f;
$custom-light: #a8a964;
$custom-dark: #000000;
JSON
{
  "hex": "#80871f",
  "rgb": {
    "r": 128,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 64.038,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59842,
    "c": 0.12237,
    "h": 113.5
  },
  "luminance": 0.22016
}

Semantic roles & 50–950 ramp

primary
#80871F
secondary
#514AB8
accent
#42E64D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #80871F

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

Preview Lab → · Contrast checker → · Palette generator →

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