#8E841B#8E841B

#8E841B is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.4% C 0.119 H 103.6°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8E841B
RGBrgb(142, 132, 27)
HSLhsl(55, 68%, 33%)
HSVhsv(55, 81%, 56%)
CMYKcmyk(0%, 7%, 81%, 44.3%)
CIE-LABlab(54.38, -7.93, 53.16)
CIE-LCHlch(54.38, 53.75, 98.49°)
OKLaboklab(60.4% -0.0279 0.1153)
OKLCHoklch(60.4% 0.119 103.6)
XYZxyz(19.6053, 22.3333, 4.3148)
Luminance0.2233 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E841B #1B258E
analogous
#8E4B1B #8E841B #5E8E1B
triadic
#8E841B #1B8E84 #841B8E
tetradic
#8E841B #1B8E4B #1B258E #8E1B5E
square
#8E841B #1B8E4B #1B258E #8E1B5E
split-complementary
#8E841B #1B5E8E #4B1B8E
monochromatic
#272407 #5B5411 #8E841B #C1B425 #DCCF47

Accessibility & contrast

On white

3.84
#8E841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#8E841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E841B
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E841B#FFFFFF#000000##000000
##8E841B1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#948424
Tritanopia (blue-blind)
#997A71
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8e841b;
/* rgb */ color: rgb(142, 132, 27);
/* oklch */ color: oklch(60.4% 0.119 103.6);
Tailwind
colors: {
  custom: {
    50: '#b3a762',
    500: '#8e841b',
    950: '#000000',
  },
}
SCSS
$custom: #8e841b;
$custom-light: #b3a762;
$custom-dark: #000000;
JSON
{
  "hex": "#8e841b",
  "rgb": {
    "r": 142,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 54.783,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60401,
    "c": 0.11867,
    "h": 103.6
  },
  "luminance": 0.22332
}

Semantic roles & 50–950 ramp

primary
#8E841B
secondary
#4751BE
accent
#4CEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8E841B

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

Preview Lab → · Contrast checker → · Palette generator →

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