#8E8B17#8E8B17

#8E8B17 is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 62.0% C 0.127 H 108.0°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8E8B17
RGBrgb(142, 139, 23)
HSLhsl(58, 72%, 32%)
HSVhsv(58, 84%, 56%)
CMYKcmyk(0%, 2.1%, 83.8%, 44.3%)
CIE-LABlab(56.37, -11.86, 56.06)
CIE-LCHlch(56.37, 57.30, 101.94°)
OKLaboklab(61.98% -0.0392 0.1208)
OKLCHoklch(61.98% 0.127 108)
XYZxyz(20.5435, 24.2786, 4.4145)
Luminance0.2428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8B17 #171A8E
analogous
#8E4F17 #8E8B17 #568E17
triadic
#8E8B17 #178E8B #8B178E
tetradic
#8E8B17 #178E4F #171A8E #8E1756
square
#8E8B17 #178E4F #171A8E #8E1756
split-complementary
#8E8B17 #17568E #4F178E
monochromatic
#252406 #59570E #8E8B17 #C3BF20 #E0DC3F

Accessibility & contrast

On white

3.59
#8E8B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#8E8B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8B17
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8B17#FFFFFF#000000##000000
##8E8B171.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#998922
Tritanopia (blue-blind)
#998176
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8e8b17;
/* rgb */ color: rgb(142, 139, 23);
/* oklch */ color: oklch(62.0% 0.127 108.0);
Tailwind
colors: {
  custom: {
    50: '#b3ac61',
    500: '#8e8b17',
    950: '#000000',
  },
}
SCSS
$custom: #8e8b17;
$custom-light: #b3ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8b17",
  "rgb": {
    "r": 142,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 58.487,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61978,
    "c": 0.12703,
    "h": 108
  },
  "luminance": 0.24278
}

Semantic roles & 50–950 ramp

primary
#8E8B17
secondary
#4044C0
accent
#3EEF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8E8B17

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

Preview Lab → · Contrast checker → · Palette generator →

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