#87891F#87891F

#87891F is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 60.9% C 0.123 H 110.7°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#87891F
RGBrgb(135, 137, 31)
HSLhsl(61, 63%, 33%)
HSVhsv(61, 77%, 54%)
CMYKcmyk(1.5%, 0%, 77.4%, 46.3%)
CIE-LABlab(55.22, -13.67, 52.37)
CIE-LCHlch(55.22, 54.13, 104.63°)
OKLaboklab(60.93% -0.0433 0.1148)
OKLCHoklch(60.93% 0.123 110.7)
XYZxyz(19.1853, 23.1417, 4.7522)
Luminance0.2314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87891F #211F89
analogous
#89561F #87891F #52891F
triadic
#87891F #1F8789 #891F87
tetradic
#87891F #1F8956 #211F89 #891F52
square
#87891F #1F8956 #211F89 #891F52
split-complementary
#87891F #1F5289 #561F89
monochromatic
#252508 #565714 #87891F #B8BB2A #D4D64C

Accessibility & contrast

On white

3.73
#87891F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#87891F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87891F
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87891F#FFFFFF#000000##000000
##87891F1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948305
Deuteranopia (green-blind)
#958628
Tritanopia (blue-blind)
#918075
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #87891f;
/* rgb */ color: rgb(135, 137, 31);
/* oklch */ color: oklch(60.9% 0.123 110.7);
Tailwind
colors: {
  custom: {
    50: '#adab64',
    500: '#87891f',
    950: '#000000',
  },
}
SCSS
$custom: #87891f;
$custom-light: #adab64;
$custom-dark: #000000;
JSON
{
  "hex": "#87891f",
  "rgb": {
    "r": 135,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 61.132,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60926,
    "c": 0.12263,
    "h": 110.7
  },
  "luminance": 0.23141
}

Semantic roles & 50–950 ramp

primary
#87891F
secondary
#4D4BB9
accent
#42E645
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #87891F

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

Preview Lab → · Contrast checker → · Palette generator →

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