#8E8A17#8E8A17

#8E8A17 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.126 H 107.4°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8E8A17
RGBrgb(142, 138, 23)
HSLhsl(58, 72%, 32%)
HSVhsv(58, 84%, 56%)
CMYKcmyk(0%, 2.8%, 83.8%, 44.3%)
CIE-LABlab(56.08, -11.32, 55.81)
CIE-LCHlch(56.08, 56.95, 101.46°)
OKLaboklab(61.75% -0.0377 0.1203)
OKLCHoklch(61.75% 0.126 107.4)
XYZxyz(20.3993, 23.9903, 4.3665)
Luminance0.2399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8A17 #171B8E
analogous
#8E4E17 #8E8A17 #578E17
triadic
#8E8A17 #178E8A #8A178E
tetradic
#8E8A17 #178E4E #171B8E #8E1757
square
#8E8A17 #178E4E #171B8E #8E1757
split-complementary
#8E8A17 #17578E #4E178E
monochromatic
#252406 #59570E #8E8A17 #C3BD20 #E0DB3F

Accessibility & contrast

On white

3.62
#8E8A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#8E8A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8A17
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8A17#FFFFFF#000000##000000
##8E8A171.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#988822
Tritanopia (blue-blind)
#998076
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8e8a17;
/* rgb */ color: rgb(142, 138, 23);
/* oklch */ color: oklch(61.7% 0.126 107.4);
Tailwind
colors: {
  custom: {
    50: '#b3ab61',
    500: '#8e8a17',
    950: '#000000',
  },
}
SCSS
$custom: #8e8a17;
$custom-light: #b3ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8a17",
  "rgb": {
    "r": 142,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 57.983,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61749,
    "c": 0.12606,
    "h": 107.4
  },
  "luminance": 0.2399
}

Semantic roles & 50–950 ramp

primary
#8E8A17
secondary
#4045C0
accent
#3FEF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8E8A17

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

Preview Lab → · Contrast checker → · Palette generator →

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