#87811A#87811A

#87811A is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 59.0% C 0.117 H 106.0°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#87811A
RGBrgb(135, 129, 26)
HSLhsl(57, 68%, 32%)
HSVhsv(57, 81%, 53%)
CMYKcmyk(0%, 4.4%, 80.7%, 47.1%)
CIE-LABlab(52.87, -9.56, 51.89)
CIE-LCHlch(52.87, 52.76, 100.44°)
OKLaboklab(59.04% -0.0322 0.1127)
OKLCHoklch(59.04% 0.117 106)
XYZxyz(18.0292, 20.9267, 4.0666)
Luminance0.2093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87811A #1A2087
analogous
#874B1A #87811A #57871A
triadic
#87811A #1A8781 #811A87
tetradic
#87811A #1A874B #1A2087 #871A57
square
#87811A #1A874B #1A2087 #871A57
split-complementary
#87811A #1A5787 #4B1A87
monochromatic
#201F06 #545010 #87811A #BAB224 #DAD241

Accessibility & contrast

On white

4.05
#87811A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#87811A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87811A
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87811A#FFFFFF#000000##000000
##87811A1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#8F8023
Tritanopia (blue-blind)
#92786E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #87811a;
/* rgb */ color: rgb(135, 129, 26);
/* oklch */ color: oklch(59.0% 0.117 106.0);
Tailwind
colors: {
  custom: {
    50: '#ada561',
    500: '#87811a',
    950: '#000000',
  },
}
SCSS
$custom: #87811a;
$custom-light: #ada561;
$custom-dark: #000000;
JSON
{
  "hex": "#87811a",
  "rgb": {
    "r": 135,
    "g": 129,
    "b": 26
  },
  "hsl": {
    "h": 56.697,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59043,
    "c": 0.11725,
    "h": 106
  },
  "luminance": 0.20926
}

Semantic roles & 50–950 ramp

primary
#87811A
secondary
#4249BA
accent
#47EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #87811A

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

Preview Lab → · Contrast checker → · Palette generator →

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