#8C871E#8C871E

#8C871E is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.9% C 0.120 H 106.6°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8C871E
RGBrgb(140, 135, 30)
HSLhsl(57, 65%, 33%)
HSVhsv(57, 79%, 55%)
CMYKcmyk(0%, 3.6%, 78.6%, 45.1%)
CIE-LABlab(55.07, -10.36, 52.73)
CIE-LCHlch(55.07, 53.74, 101.12°)
OKLaboklab(60.91% -0.0344 0.1151)
OKLCHoklch(60.91% 0.12 106.6)
XYZxyz(19.7144, 22.9979, 4.6286)
Luminance0.2300 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C871E #1E238C
analogous
#8C501E #8C871E #5A8C1E
triadic
#8C871E #1E8C87 #871E8C
tetradic
#8C871E #1E8C50 #1E238C #8C1E5A
square
#8C871E #1E8C50 #1E238C #8C1E5A
split-complementary
#8C871E #1E5A8C #501E8C
monochromatic
#272608 #5A5613 #8C871E #BEB829 #D9D24C

Accessibility & contrast

On white

3.75
#8C871E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#8C871E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C871E
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C871E#FFFFFF#000000##000000
##8C871E1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938203
Deuteranopia (green-blind)
#958627
Tritanopia (blue-blind)
#977E73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8c871e;
/* rgb */ color: rgb(140, 135, 30);
/* oklch */ color: oklch(60.9% 0.120 106.6);
Tailwind
colors: {
  custom: {
    50: '#b1a963',
    500: '#8c871e',
    950: '#000000',
  },
}
SCSS
$custom: #8c871e;
$custom-light: #b1a963;
$custom-dark: #000000;
JSON
{
  "hex": "#8c871e",
  "rgb": {
    "r": 140,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 57.273,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60912,
    "c": 0.12015,
    "h": 106.6
  },
  "luminance": 0.22997
}

Semantic roles & 50–950 ramp

primary
#8C871E
secondary
#4B50BB
accent
#48E840
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8C871E

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

Preview Lab → · Contrast checker → · Palette generator →

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