#8D871F#8D871F

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

Color values

HEX#8D871F
RGBrgb(141, 135, 31)
HSLhsl(57, 64%, 34%)
HSVhsv(57, 78%, 55%)
CMYKcmyk(0%, 4.3%, 78%, 44.7%)
CIE-LABlab(55.17, -9.86, 52.52)
CIE-LCHlch(55.17, 53.44, 100.64°)
OKLaboklab(61.01% -0.0329 0.1148)
OKLCHoklch(61.01% 0.119 106)
XYZxyz(19.8966, 23.0903, 4.7049)
Luminance0.2309 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D871F #1F258D
analogous
#8D501F #8D871F #5C8D1F
triadic
#8D871F #1F8D87 #871F8D
tetradic
#8D871F #1F8D50 #1F258D #8D1F5C
square
#8D871F #1F8D50 #1F258D #8D1F5C
split-complementary
#8D871F #1F5C8D #501F8D
monochromatic
#292709 #5B5714 #8D871F #BFB72A #D8D14E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D871F#FFFFFF#000000##000000
##8D871F1.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)
#938206
Deuteranopia (green-blind)
#968627
Tritanopia (blue-blind)
#987D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8d871f;
/* rgb */ color: rgb(141, 135, 31);
/* oklch */ color: oklch(61.0% 0.119 106.0);
Tailwind
colors: {
  custom: {
    50: '#b2a964',
    500: '#8d871f',
    950: '#000000',
  },
}
SCSS
$custom: #8d871f;
$custom-light: #b2a964;
$custom-dark: #000000;
JSON
{
  "hex": "#8d871f",
  "rgb": {
    "r": 141,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 56.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61011,
    "c": 0.11944,
    "h": 106
  },
  "luminance": 0.2309
}

Semantic roles & 50–950 ramp

primary
#8D871F
secondary
#4D53BB
accent
#4AE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D871F

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

Preview Lab → · Contrast checker → · Palette generator →

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