#8E8717#8E8717

#8E8717 is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 61.1% C 0.123 H 105.6°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8E8717
RGBrgb(142, 135, 23)
HSLhsl(56, 72%, 32%)
HSVhsv(56, 84%, 56%)
CMYKcmyk(0%, 4.9%, 83.8%, 44.3%)
CIE-LABlab(55.22, -9.70, 55.08)
CIE-LCHlch(55.22, 55.93, 99.99°)
OKLaboklab(61.06% -0.0332 0.1187)
OKLCHoklch(61.06% 0.123 105.6)
XYZxyz(19.9748, 23.1414, 4.2250)
Luminance0.2314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8717 #171E8E
analogous
#8E4C17 #8E8717 #598E17
triadic
#8E8717 #178E87 #87178E
tetradic
#8E8717 #178E4C #171E8E #8E1759
square
#8E8717 #178E4C #171E8E #8E1759
split-complementary
#8E8717 #17598E #4C178E
monochromatic
#252306 #59550E #8E8717 #C3B920 #E0D73F

Accessibility & contrast

On white

3.73
#8E8717 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#8E8717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8717
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8717#FFFFFF#000000##000000
##8E87171.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#968621
Tritanopia (blue-blind)
#997D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8e8717;
/* rgb */ color: rgb(142, 135, 23);
/* oklch */ color: oklch(61.1% 0.123 105.6);
Tailwind
colors: {
  custom: {
    50: '#b3a961',
    500: '#8e8717',
    950: '#000000',
  },
}
SCSS
$custom: #8e8717;
$custom-light: #b3a961;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8717",
  "rgb": {
    "r": 142,
    "g": 135,
    "b": 23
  },
  "hsl": {
    "h": 56.471,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61063,
    "c": 0.12325,
    "h": 105.6
  },
  "luminance": 0.23141
}

Semantic roles & 50–950 ramp

primary
#8E8717
secondary
#4048C0
accent
#44EF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8E8717

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

Preview Lab → · Contrast checker → · Palette generator →

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