#8E8B18#8E8B18

#8E8B18 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#8E8B18
RGBrgb(142, 139, 24)
HSLhsl(58, 71%, 33%)
HSVhsv(58, 83%, 56%)
CMYKcmyk(0%, 2.1%, 83.1%, 44.3%)
CIE-LABlab(56.37, -11.82, 55.79)
CIE-LCHlch(56.37, 57.03, 101.97°)
OKLaboklab(61.98% -0.0391 0.1204)
OKLCHoklch(61.98% 0.127 108)
XYZxyz(20.5537, 24.2827, 4.4683)
Luminance0.2428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8B18 #181B8E
analogous
#8E5018 #8E8B18 #568E18
triadic
#8E8B18 #188E8B #8B188E
tetradic
#8E8B18 #188E50 #181B8E #8E1856
square
#8E8B18 #188E50 #181B8E #8E1856
split-complementary
#8E8B18 #18568E #50188E
monochromatic
#252506 #5A580F #8E8B18 #C2BE21 #DFDB41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E8B18#FFFFFF#000000##000000
##8E8B181.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)
#998923
Tritanopia (blue-blind)
#998176
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8e8b18;
/* rgb */ color: rgb(142, 139, 24);
/* oklch */ color: oklch(62.0% 0.127 108.0);
Tailwind
colors: {
  custom: {
    50: '#b3ac62',
    500: '#8e8b18',
    950: '#000000',
  },
}
SCSS
$custom: #8e8b18;
$custom-light: #b3ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8b18",
  "rgb": {
    "r": 142,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 58.475,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61983,
    "c": 0.1266,
    "h": 108
  },
  "luminance": 0.24282
}

Semantic roles & 50–950 ramp

primary
#8E8B18
secondary
#4245C0
accent
#3FEE3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8E8B18

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

Preview Lab → · Contrast checker → · Palette generator →

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