#8E8917#8E8917

#8E8917 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.5% C 0.125 H 106.8°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8E8917
RGBrgb(142, 137, 23)
HSLhsl(57, 72%, 32%)
HSVhsv(57, 84%, 56%)
CMYKcmyk(0%, 3.5%, 83.8%, 44.3%)
CIE-LABlab(55.79, -10.78, 55.57)
CIE-LCHlch(55.79, 56.61, 100.98°)
OKLaboklab(61.52% -0.0362 0.1198)
OKLCHoklch(61.52% 0.125 106.8)
XYZxyz(20.2565, 23.7047, 4.3189)
Luminance0.2370 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8917 #171C8E
analogous
#8E4E17 #8E8917 #588E17
triadic
#8E8917 #178E89 #89178E
tetradic
#8E8917 #178E4E #171C8E #8E1758
square
#8E8917 #178E4E #171C8E #8E1758
split-complementary
#8E8917 #17588E #4E178E
monochromatic
#252306 #59560E #8E8917 #C3BC20 #E0D93F

Accessibility & contrast

On white

3.66
#8E8917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#8E8917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8917
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8917#FFFFFF#000000##000000
##8E89171.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#988822
Tritanopia (blue-blind)
#997F75
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8e8917;
/* rgb */ color: rgb(142, 137, 23);
/* oklch */ color: oklch(61.5% 0.125 106.8);
Tailwind
colors: {
  custom: {
    50: '#b3ab61',
    500: '#8e8917',
    950: '#000000',
  },
}
SCSS
$custom: #8e8917;
$custom-light: #b3ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8917",
  "rgb": {
    "r": 142,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 57.479,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.6152,
    "c": 0.12511,
    "h": 106.8
  },
  "luminance": 0.23704
}

Semantic roles & 50–950 ramp

primary
#8E8917
secondary
#4046C0
accent
#41EF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8E8917

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

Preview Lab → · Contrast checker → · Palette generator →

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