#8C871D#8C871D

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

Color values

HEX#8C871D
RGBrgb(140, 135, 29)
HSLhsl(57, 66%, 33%)
HSVhsv(57, 79%, 55%)
CMYKcmyk(0%, 3.6%, 79.3%, 45.1%)
CIE-LABlab(55.06, -10.40, 53.06)
CIE-LCHlch(55.06, 54.07, 101.09°)
OKLaboklab(60.91% -0.0346 0.1156)
OKLCHoklch(60.91% 0.121 106.7)
XYZxyz(19.7018, 22.9928, 4.5624)
Luminance0.2299 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C871D #1D228C
analogous
#8C4F1D #8C871D #598C1D
triadic
#8C871D #1D8C87 #871D8C
tetradic
#8C871D #1D8C4F #1D228C #8C1D59
square
#8C871D #1D8C4F #1D228C #8C1D59
split-complementary
#8C871D #1D598C #4F1D8C
monochromatic
#272508 #595612 #8C871D #BFB828 #D9D34A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C871D#FFFFFF#000000##000000
##8C871D1.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)
#938201
Deuteranopia (green-blind)
#958626
Tritanopia (blue-blind)
#977D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8c871d;
/* rgb */ color: rgb(140, 135, 29);
/* oklch */ color: oklch(60.9% 0.121 106.7);
Tailwind
colors: {
  custom: {
    50: '#b1a963',
    500: '#8c871d',
    950: '#000000',
  },
}
SCSS
$custom: #8c871d;
$custom-light: #b1a963;
$custom-dark: #000000;
JSON
{
  "hex": "#8c871d",
  "rgb": {
    "r": 140,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 57.297,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60907,
    "c": 0.12068,
    "h": 106.7
  },
  "luminance": 0.22992
}

Semantic roles & 50–950 ramp

primary
#8C871D
secondary
#494EBC
accent
#47E93F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8C871D

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

Preview Lab → · Contrast checker → · Palette generator →

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