#8D871D#8D871D

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

Color values

HEX#8D871D
RGBrgb(141, 135, 29)
HSLhsl(57, 66%, 33%)
HSVhsv(57, 79%, 55%)
CMYKcmyk(0%, 4.3%, 79.4%, 44.7%)
CIE-LABlab(55.15, -9.95, 53.17)
CIE-LCHlch(55.15, 54.10, 100.60°)
OKLaboklab(61% -0.0334 0.1158)
OKLCHoklch(61% 0.121 106.1)
XYZxyz(19.8711, 23.0801, 4.5704)
Luminance0.2308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D871D #1D238D
analogous
#8D4F1D #8D871D #5B8D1D
triadic
#8D871D #1D8D87 #871D8D
tetradic
#8D871D #1D8D4F #1D238D #8D1D5B
square
#8D871D #1D8D4F #1D238D #8D1D5B
split-complementary
#8D871D #1D5B8D #4F1D8D
monochromatic
#272608 #5A5613 #8D871D #C0B827 #DAD24B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D871D#FFFFFF#000000##000000
##8D871D1.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)
#938201
Deuteranopia (green-blind)
#968626
Tritanopia (blue-blind)
#987D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8d871d;
/* rgb */ color: rgb(141, 135, 29);
/* oklch */ color: oklch(61.0% 0.121 106.1);
Tailwind
colors: {
  custom: {
    50: '#b2a963',
    500: '#8d871d',
    950: '#000000',
  },
}
SCSS
$custom: #8d871d;
$custom-light: #b2a963;
$custom-dark: #000000;
JSON
{
  "hex": "#8d871d",
  "rgb": {
    "r": 141,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 56.786,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61,
    "c": 0.12053,
    "h": 106.1
  },
  "luminance": 0.23079
}

Semantic roles & 50–950 ramp

primary
#8D871D
secondary
#4A50BC
accent
#48E93F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D871D

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

Preview Lab → · Contrast checker → · Palette generator →

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