#8E9717#8E9717

#8E9717 is a light, vivid yellow. Relative luminance 0.279; OKLCH L 64.8% C 0.139 H 114.0°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8E9717
RGBrgb(142, 151, 23)
HSLhsl(64, 74%, 34%)
HSVhsv(64, 85%, 59%)
CMYKcmyk(6%, 0%, 84.8%, 40.8%)
CIE-LABlab(59.84, -18.16, 59.02)
CIE-LCHlch(59.84, 61.75, 107.10°)
OKLaboklab(64.76% -0.0566 0.1272)
OKLCHoklch(64.76% 0.139 114)
XYZxyz(22.3773, 27.9463, 5.0258)
Luminance0.2795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E9717 #201797
analogous
#976017 #8E9717 #4E9717
triadic
#8E9717 #178E97 #97178E
tetradic
#8E9717 #179760 #201797 #97174E
square
#8E9717 #179760 #201797 #97174E
split-complementary
#8E9717 #174E97 #601797
monochromatic
#2A2D07 #5C620F #8E9717 #C0CC1F #D8E346

Accessibility & contrast

On white

3.19
#8E9717 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#8E9717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E9717
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E9717#FFFFFF#000000##000000
##8E97171.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A38F00
Deuteranopia (green-blind)
#A29125
Tritanopia (blue-blind)
#988D81
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8e9717;
/* rgb */ color: rgb(142, 151, 23);
/* oklch */ color: oklch(64.8% 0.139 114.0);
Tailwind
colors: {
  custom: {
    50: '#b3b563',
    500: '#8e9717',
    950: '#000000',
  },
}
SCSS
$custom: #8e9717;
$custom-light: #b3b563;
$custom-dark: #000000;
JSON
{
  "hex": "#8e9717",
  "rgb": {
    "r": 142,
    "g": 151,
    "b": 23
  },
  "hsl": {
    "h": 64.219,
    "s": 73.563,
    "l": 34.118
  },
  "oklch": {
    "l": 0.64759,
    "c": 0.13926,
    "h": 114
  },
  "luminance": 0.27946
}

Semantic roles & 50–950 ramp

primary
#8E9717
secondary
#4F46C4
accent
#38F045
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8E9717

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

Preview Lab → · Contrast checker → · Palette generator →

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