#876D18#876D18

#876D18 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.5% C 0.103 H 90.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#876D18
RGBrgb(135, 109, 24)
HSLhsl(46, 70%, 31%)
HSVhsv(46, 82%, 53%)
CMYKcmyk(0%, 19.3%, 82.2%, 47.1%)
CIE-LABlab(47.18, 1.59, 47.47)
CIE-LCHlch(47.18, 47.50, 88.08°)
OKLaboklab(54.53% -0.0009 0.1028)
OKLCHoklch(54.53% 0.103 90.5)
XYZxyz(15.6261, 16.1551, 3.1592)
Luminance0.1615 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#876D18 #183287
analogous
#873518 #876D18 #698718
triadic
#876D18 #18876D #6D1887
tetradic
#876D18 #188735 #183287 #871869
square
#876D18 #188735 #183287 #871869
split-complementary
#876D18 #186987 #351887
monochromatic
#1F1906 #53430F #876D18 #BB9721 #DCB73D

Accessibility & contrast

On white

4.96
#876D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#876D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #876D18
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##876D18#FFFFFF#000000##FFFFFF
##876D181.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C04
Deuteranopia (green-blind)
#81731D
Tritanopia (blue-blind)
#93635D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #876d18;
/* rgb */ color: rgb(135, 109, 24);
/* oklch */ color: oklch(54.5% 0.103 90.5);
Tailwind
colors: {
  custom: {
    50: '#ae965d',
    500: '#876d18',
    950: '#000000',
  },
}
SCSS
$custom: #876d18;
$custom-light: #ae965d;
$custom-dark: #000000;
JSON
{
  "hex": "#876d18",
  "rgb": {
    "r": 135,
    "g": 109,
    "b": 24
  },
  "hsl": {
    "h": 45.946,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54527,
    "c": 0.1028,
    "h": 90.5
  },
  "luminance": 0.16154
}

Semantic roles & 50–950 ramp

primary
#876D18
secondary
#405DBB
accent
#65ED3B
background
#FBF9F5
surface
#F6F1E9
border
#D0CBC5
text
#110D05
muted
#807E79

Preview Lab

Preview with #876D18

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

Preview Lab → · Contrast checker → · Palette generator →

#876D18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva