#87841A#87841A

#87841A is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.7% C 0.120 H 107.8°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#87841A
RGBrgb(135, 132, 26)
HSLhsl(58, 68%, 32%)
HSVhsv(58, 81%, 53%)
CMYKcmyk(0%, 2.2%, 80.7%, 47.1%)
CIE-LABlab(53.74, -11.19, 52.66)
CIE-LCHlch(53.74, 53.84, 102.00°)
OKLaboklab(59.74% -0.0368 0.1144)
OKLCHoklch(59.74% 0.12 107.8)
XYZxyz(18.4301, 21.7286, 4.2003)
Luminance0.2173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87841A #1A1D87
analogous
#874E1A #87841A #54871A
triadic
#87841A #1A8784 #841A87
tetradic
#87841A #1A874E #1A1D87 #871A54
square
#87841A #1A874E #1A1D87 #871A54
split-complementary
#87841A #1A5487 #4E1A87
monochromatic
#202006 #545210 #87841A #BAB624 #DAD641

Accessibility & contrast

On white

3.93
#87841A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#87841A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #87841A
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87841A#FFFFFF#000000##000000
##87841A1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#917B71
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #87841a;
/* rgb */ color: rgb(135, 132, 26);
/* oklch */ color: oklch(59.7% 0.120 107.8);
Tailwind
colors: {
  custom: {
    50: '#ada761',
    500: '#87841a',
    950: '#000000',
  },
}
SCSS
$custom: #87841a;
$custom-light: #ada761;
$custom-dark: #000000;
JSON
{
  "hex": "#87841a",
  "rgb": {
    "r": 135,
    "g": 132,
    "b": 26
  },
  "hsl": {
    "h": 58.349,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59735,
    "c": 0.12016,
    "h": 107.8
  },
  "luminance": 0.21728
}

Semantic roles & 50–950 ramp

primary
#87841A
secondary
#4246BA
accent
#42EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #87841A

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

Preview Lab → · Contrast checker → · Palette generator →

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