#8E871C#8E871C

#8E871C is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 61.1% C 0.121 H 105.5°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8E871C
RGBrgb(142, 135, 28)
HSLhsl(56, 67%, 33%)
HSVhsv(56, 80%, 56%)
CMYKcmyk(0%, 4.9%, 80.3%, 44.3%)
CIE-LABlab(55.24, -9.53, 53.61)
CIE-LCHlch(55.24, 54.45, 100.08°)
OKLaboklab(61.09% -0.0323 0.1165)
OKLCHoklch(61.09% 0.121 105.5)
XYZxyz(20.0298, 23.1634, 4.5143)
Luminance0.2316 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E871C #1C238E
analogous
#8E4E1C #8E871C #5C8E1C
triadic
#8E871C #1C8E87 #871C8E
tetradic
#8E871C #1C8E4E #1C238E #8E1C5C
square
#8E871C #1C8E4E #1C238E #8E1C5C
split-complementary
#8E871C #1C5C8E #4E1C8E
monochromatic
#282608 #5B5612 #8E871C #C1B826 #DBD249

Accessibility & contrast

On white

3.73
#8E871C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#8E871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E871C
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E871C#FFFFFF#000000##000000
##8E871C1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#968625
Tritanopia (blue-blind)
#997D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8e871c;
/* rgb */ color: rgb(142, 135, 28);
/* oklch */ color: oklch(61.1% 0.121 105.5);
Tailwind
colors: {
  custom: {
    50: '#b3a963',
    500: '#8e871c',
    950: '#000000',
  },
}
SCSS
$custom: #8e871c;
$custom-light: #b3a963;
$custom-dark: #000000;
JSON
{
  "hex": "#8e871c",
  "rgb": {
    "r": 142,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 56.316,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61088,
    "c": 0.1209,
    "h": 105.5
  },
  "luminance": 0.23163
}

Semantic roles & 50–950 ramp

primary
#8E871C
secondary
#4950BD
accent
#48EA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E871C

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

Preview Lab → · Contrast checker → · Palette generator →

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