#8E841F#8E841F

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

Color values

HEX#8E841F
RGBrgb(142, 132, 31)
HSLhsl(55, 64%, 34%)
HSVhsv(55, 78%, 56%)
CMYKcmyk(0%, 7%, 78.2%, 44.3%)
CIE-LABlab(54.40, -7.77, 51.85)
CIE-LCHlch(54.40, 52.43, 98.53°)
OKLaboklab(60.42% -0.0271 0.1133)
OKLCHoklch(60.42% 0.117 103.5)
XYZxyz(19.6548, 22.3531, 4.5753)
Luminance0.2235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E841F #1F298E
analogous
#8E4D1F #8E841F #618E1F
triadic
#8E841F #1F8E84 #841F8E
tetradic
#8E841F #1F8E4D #1F298E #8E1F61
square
#8E841F #1F8E4D #1F298E #8E1F61
split-complementary
#8E841F #1F618E #4D1F8E
monochromatic
#2A2709 #5C5514 #8E841F #C0B32A #D9CC4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E841F#FFFFFF#000000##000000
##8E841F1.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)
#917F07
Deuteranopia (green-blind)
#948427
Tritanopia (blue-blind)
#997A71
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8e841f;
/* rgb */ color: rgb(142, 132, 31);
/* oklch */ color: oklch(60.4% 0.117 103.5);
Tailwind
colors: {
  custom: {
    50: '#b3a764',
    500: '#8e841f',
    950: '#000000',
  },
}
SCSS
$custom: #8e841f;
$custom-light: #b3a764;
$custom-dark: #000000;
JSON
{
  "hex": "#8e841f",
  "rgb": {
    "r": 142,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 54.595,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60424,
    "c": 0.11654,
    "h": 103.5
  },
  "luminance": 0.22352
}

Semantic roles & 50–950 ramp

primary
#8E841F
secondary
#4D57BB
accent
#50E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E841F

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

Preview Lab → · Contrast checker → · Palette generator →

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