#8C871A#8C871A

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

Color values

HEX#8C871A
RGBrgb(140, 135, 26)
HSLhsl(57, 69%, 33%)
HSVhsv(57, 81%, 55%)
CMYKcmyk(0%, 3.6%, 81.4%, 45.1%)
CIE-LABlab(55.05, -10.52, 53.99)
CIE-LCHlch(55.05, 55.01, 101.02°)
OKLaboklab(60.89% -0.0352 0.117)
OKLCHoklch(60.89% 0.122 106.7)
XYZxyz(19.6665, 22.9787, 4.3765)
Luminance0.2298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C871A #1A1F8C
analogous
#8C4E1A #8C871A #588C1A
triadic
#8C871A #1A8C87 #871A8C
tetradic
#8C871A #1A8C4E #1A1F8C #8C1A58
square
#8C871A #1A8C4E #1A1F8C #8C1A58
split-complementary
#8C871A #1A588C #4E1A8C
monochromatic
#252307 #585510 #8C871A #C0B924 #DCD644

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C871A#FFFFFF#000000##000000
##8C871A1.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)
#938200
Deuteranopia (green-blind)
#958624
Tritanopia (blue-blind)
#977D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8c871a;
/* rgb */ color: rgb(140, 135, 26);
/* oklch */ color: oklch(60.9% 0.122 106.7);
Tailwind
colors: {
  custom: {
    50: '#b1a962',
    500: '#8c871a',
    950: '#000000',
  },
}
SCSS
$custom: #8c871a;
$custom-light: #b1a962;
$custom-dark: #000000;
JSON
{
  "hex": "#8c871a",
  "rgb": {
    "r": 140,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 57.368,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.6089,
    "c": 0.12219,
    "h": 106.7
  },
  "luminance": 0.22978
}

Semantic roles & 50–950 ramp

primary
#8C871A
secondary
#444ABE
accent
#44EC3C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8C871A

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

Preview Lab → · Contrast checker → · Palette generator →

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