#8E8918#8E8918

#8E8918 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#8E8918
RGBrgb(142, 137, 24)
HSLhsl(57, 71%, 33%)
HSVhsv(57, 83%, 56%)
CMYKcmyk(0%, 3.5%, 83.1%, 44.3%)
CIE-LABlab(55.80, -10.75, 55.29)
CIE-LCHlch(55.80, 56.33, 101.00°)
OKLaboklab(61.52% -0.0361 0.1194)
OKLCHoklch(61.52% 0.125 106.8)
XYZxyz(20.2667, 23.7088, 4.3727)
Luminance0.2371 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8918 #181D8E
analogous
#8E4E18 #8E8918 #588E18
triadic
#8E8918 #188E89 #89188E
tetradic
#8E8918 #188E4E #181D8E #8E1858
square
#8E8918 #188E4E #181D8E #8E1858
split-complementary
#8E8918 #18588E #4E188E
monochromatic
#252406 #5A560F #8E8918 #C2BC21 #DFD841

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E8918#FFFFFF#000000##000000
##8E89181.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: #8e8918;
/* rgb */ color: rgb(142, 137, 24);
/* oklch */ color: oklch(61.5% 0.125 106.8);
Tailwind
colors: {
  custom: {
    50: '#b3ab61',
    500: '#8e8918',
    950: '#000000',
  },
}
SCSS
$custom: #8e8918;
$custom-light: #b3ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8918",
  "rgb": {
    "r": 142,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 57.458,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61524,
    "c": 0.12468,
    "h": 106.8
  },
  "luminance": 0.23708
}

Semantic roles & 50–950 ramp

primary
#8E8918
secondary
#4247C0
accent
#42EE3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8E8918

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

Preview Lab → · Contrast checker → · Palette generator →

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