#8E861B#8E861B

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

Color values

HEX#8E861B
RGBrgb(142, 134, 27)
HSLhsl(56, 68%, 33%)
HSVhsv(56, 81%, 56%)
CMYKcmyk(0%, 5.6%, 81%, 44.3%)
CIE-LABlab(54.95, -9.02, 53.66)
CIE-LCHlch(54.95, 54.42, 99.54°)
OKLaboklab(60.86% -0.031 0.1164)
OKLCHoklch(60.86% 0.12 104.9)
XYZxyz(19.8791, 22.8809, 4.4060)
Luminance0.2288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E861B #1B238E
analogous
#8E4C1B #8E861B #5C8E1B
triadic
#8E861B #1B8E86 #861B8E
tetradic
#8E861B #1B8E4C #1B238E #8E1B5C
square
#8E861B #1B8E4C #1B238E #8E1B5C
split-complementary
#8E861B #1B5C8E #4C1B8E
monochromatic
#272507 #5B5511 #8E861B #C1B725 #DCD247

Accessibility & contrast

On white

3.77
#8E861B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#8E861B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E861B
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E861B#FFFFFF#000000##000000
##8E861B1.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#958624
Tritanopia (blue-blind)
#997C72
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8e861b;
/* rgb */ color: rgb(142, 134, 27);
/* oklch */ color: oklch(60.9% 0.120 104.9);
Tailwind
colors: {
  custom: {
    50: '#b3a862',
    500: '#8e861b',
    950: '#000000',
  },
}
SCSS
$custom: #8e861b;
$custom-light: #b3a862;
$custom-dark: #000000;
JSON
{
  "hex": "#8e861b",
  "rgb": {
    "r": 142,
    "g": 134,
    "b": 27
  },
  "hsl": {
    "h": 55.826,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60855,
    "c": 0.12048,
    "h": 104.9
  },
  "luminance": 0.2288
}

Semantic roles & 50–950 ramp

primary
#8E861B
secondary
#474FBE
accent
#49EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E861B

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

Preview Lab → · Contrast checker → · Palette generator →

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