#8E8D2A#8E8D2A

#8E8D2A is a light, moderate yellow. Relative luminance 0.250; OKLCH L 62.6% C 0.118 H 108.8°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8E8D2A
RGBrgb(142, 141, 42)
HSLhsl(59, 54%, 36%)
HSVhsv(59, 70%, 56%)
CMYKcmyk(0%, 0.7%, 70.4%, 44.3%)
CIE-LABlab(57.04, -12.10, 50.27)
CIE-LCHlch(57.04, 51.70, 103.54°)
OKLaboklab(62.55% -0.0382 0.1121)
OKLCHoklch(62.55% 0.118 108.8)
XYZxyz(21.0989, 24.9683, 5.8980)
Luminance0.2497 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8D2A #2A2B8E
analogous
#8E5B2A #8E8D2A #5D8E2A
triadic
#8E8D2A #2A8E8D #8D2A8E
tetradic
#8E8D2A #2A8E5B #2A2B8E #8E2A5D
square
#8E8D2A #2A8E5B #2A2B8E #8E2A5D
split-complementary
#8E8D2A #2A5D8E #5B2A8E
monochromatic
#302F0E #5F5E1C #8E8D2A #BDBC38 #D1CF62

Accessibility & contrast

On white

3.50
#8E8D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#8E8D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8D2A
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8D2A#FFFFFF#000000##000000
##8E8D2A1.003.505.995.99
#FFFFFF3.501.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#99871A
Deuteranopia (green-blind)
#9A8A31
Tritanopia (blue-blind)
#988479
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8e8d2a;
/* rgb */ color: rgb(142, 141, 42);
/* oklch */ color: oklch(62.6% 0.118 108.8);
Tailwind
colors: {
  custom: {
    50: '#b2ae6a',
    500: '#8e8d2a',
    950: '#000000',
  },
}
SCSS
$custom: #8e8d2a;
$custom-light: #b2ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8d2a",
  "rgb": {
    "r": 142,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 59.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.62553,
    "c": 0.11842,
    "h": 108.8
  },
  "luminance": 0.24968
}

Semantic roles & 50–950 ramp

primary
#8E8D2A
secondary
#5D5EB6
accent
#4CDE4A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8E8D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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