#8C871F#8C871F

#8C871F is a mid, moderate 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#8C871F
RGBrgb(140, 135, 31)
HSLhsl(57, 64%, 34%)
HSVhsv(57, 78%, 55%)
CMYKcmyk(0%, 3.6%, 77.9%, 45.1%)
CIE-LABlab(55.08, -10.32, 52.40)
CIE-LCHlch(55.08, 53.41, 101.14°)
OKLaboklab(60.92% -0.0342 0.1146)
OKLCHoklch(60.92% 0.12 106.6)
XYZxyz(19.7273, 23.0030, 4.6969)
Luminance0.2300 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C871F #1F248C
analogous
#8C501F #8C871F #5A8C1F
triadic
#8C871F #1F8C87 #871F8C
tetradic
#8C871F #1F8C50 #1F248C #8C1F5A
square
#8C871F #1F8C50 #1F248C #8C1F5A
split-complementary
#8C871F #1F5A8C #501F8C
monochromatic
#282609 #5A5714 #8C871F #BEB72A #D8D14E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C871F#FFFFFF#000000##000000
##8C871F1.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)
#938206
Deuteranopia (green-blind)
#958627
Tritanopia (blue-blind)
#977E73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8c871f;
/* rgb */ color: rgb(140, 135, 31);
/* oklch */ color: oklch(60.9% 0.120 106.6);
Tailwind
colors: {
  custom: {
    50: '#b1a964',
    500: '#8c871f',
    950: '#000000',
  },
}
SCSS
$custom: #8c871f;
$custom-light: #b1a964;
$custom-dark: #000000;
JSON
{
  "hex": "#8c871f",
  "rgb": {
    "r": 140,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 57.248,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60918,
    "c": 0.1196,
    "h": 106.6
  },
  "luminance": 0.23002
}

Semantic roles & 50–950 ramp

primary
#8C871F
secondary
#4C51BB
accent
#49E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8C871F

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

Preview Lab → · Contrast checker → · Palette generator →

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