#8D871E#8D871E

#8D871E is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.0% C 0.120 H 106.0°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8D871E
RGBrgb(141, 135, 30)
HSLhsl(57, 65%, 34%)
HSVhsv(57, 79%, 55%)
CMYKcmyk(0%, 4.3%, 78.7%, 44.7%)
CIE-LABlab(55.16, -9.91, 52.85)
CIE-LCHlch(55.16, 53.77, 100.62°)
OKLaboklab(61.01% -0.0332 0.1153)
OKLCHoklch(61.01% 0.12 106)
XYZxyz(19.8837, 23.0852, 4.6365)
Luminance0.2308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D871E #1E248D
analogous
#8D4F1E #8D871E #5B8D1E
triadic
#8D871E #1E8D87 #871E8D
tetradic
#8D871E #1E8D4F #1E248D #8D1E5B
square
#8D871E #1E8D4F #1E248D #8D1E5B
split-complementary
#8D871E #1E5B8D #4F1E8D
monochromatic
#282609 #5B5713 #8D871E #BFB729 #D9D14C

Accessibility & contrast

On white

3.74
#8D871E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#8D871E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D871E
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D871E#FFFFFF#000000##000000
##8D871E1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#938203
Deuteranopia (green-blind)
#968627
Tritanopia (blue-blind)
#987D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8d871e;
/* rgb */ color: rgb(141, 135, 30);
/* oklch */ color: oklch(61.0% 0.120 106.0);
Tailwind
colors: {
  custom: {
    50: '#b2a963',
    500: '#8d871e',
    950: '#000000',
  },
}
SCSS
$custom: #8d871e;
$custom-light: #b2a963;
$custom-dark: #000000;
JSON
{
  "hex": "#8d871e",
  "rgb": {
    "r": 141,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 56.757,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61006,
    "c": 0.11999,
    "h": 106
  },
  "luminance": 0.23084
}

Semantic roles & 50–950 ramp

primary
#8D871E
secondary
#4B51BC
accent
#49E840
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D871E

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

Preview Lab → · Contrast checker → · Palette generator →

#8D871E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva