#8E9840#8E9840

#8E9840 is a light, moderate yellow. Relative luminance 0.286; OKLCH L 65.3% C 0.113 H 115.0°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8E9840
RGBrgb(142, 152, 64)
HSLhsl(67, 41%, 42%)
HSVhsv(67, 58%, 60%)
CMYKcmyk(6.6%, 0%, 57.9%, 40.4%)
CIE-LABlab(60.41, -16.37, 44.17)
CIE-LCHlch(60.41, 47.11, 110.34°)
OKLaboklab(65.3% -0.0478 0.1025)
OKLCHoklch(65.3% 0.113 115)
XYZxyz(23.3094, 28.5778, 9.1376)
Luminance0.2858 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E9840 #4A4098
analogous
#987640 #8E9840 #629840
triadic
#8E9840 #408E98 #98408E
tetradic
#8E9840 #409876 #4A4098 #984062
square
#8E9840 #409876 #4A4098 #984062
split-complementary
#8E9840 #406298 #764098
monochromatic
#3E421C #666D2E #8E9840 #AFBA5B #C4CC86

Accessibility & contrast

On white

3.13
#8E9840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#8E9840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E9840
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E9840#FFFFFF#000000##000000
##8E98401.003.136.726.72
#FFFFFF3.131.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A29137
Deuteranopia (green-blind)
#A19245
Tritanopia (blue-blind)
#969085
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8e9840;
/* rgb */ color: rgb(142, 152, 64);
/* oklch */ color: oklch(65.3% 0.113 115.0);
Tailwind
colors: {
  custom: {
    50: '#b1b678',
    500: '#8e9840',
    950: '#000000',
  },
}
SCSS
$custom: #8e9840;
$custom-light: #b1b678;
$custom-dark: #000000;
JSON
{
  "hex": "#8e9840",
  "rgb": {
    "r": 142,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 66.818,
    "s": 40.741,
    "l": 42.353
  },
  "oklch": {
    "l": 0.65302,
    "c": 0.1131,
    "h": 115
  },
  "luminance": 0.28577
}

Semantic roles & 50–950 ramp

primary
#8E9840
secondary
#847DB7
accent
#57D165
background
#FBFBF7
surface
#F6F6ED
border
#D0D0C8
text
#111109
muted
#80807B

Preview Lab

Preview with #8E9840

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

Preview Lab → · Contrast checker → · Palette generator →

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