#8E8D21#8E8D21

#8E8D21 is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.5% C 0.124 H 109.0°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8E8D21
RGBrgb(142, 141, 33)
HSLhsl(59, 62%, 34%)
HSVhsv(59, 77%, 56%)
CMYKcmyk(0%, 0.7%, 76.8%, 44.3%)
CIE-LABlab(56.99, -12.55, 53.55)
CIE-LCHlch(56.99, 55.00, 103.19°)
OKLaboklab(62.49% -0.0403 0.1174)
OKLCHoklch(62.49% 0.124 109)
XYZxyz(20.9555, 24.9110, 5.1430)
Luminance0.2491 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8D21 #21228E
analogous
#8E5721 #8E8D21 #588E21
triadic
#8E8D21 #218E8D #8D218E
tetradic
#8E8D21 #218E57 #21228E #8E2158
square
#8E8D21 #218E57 #21228E #8E2158
split-complementary
#8E8D21 #21588E #57218E
monochromatic
#2B2A0A #5C5C15 #8E8D21 #C0BE2D #D7D652

Accessibility & contrast

On white

3.51
#8E8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#8E8D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8D21
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8D21#FFFFFF#000000##000000
##8E8D211.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#998707
Deuteranopia (green-blind)
#9A8A2A
Tritanopia (blue-blind)
#998479
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8e8d21;
/* rgb */ color: rgb(142, 141, 33);
/* oklch */ color: oklch(62.5% 0.124 109.0);
Tailwind
colors: {
  custom: {
    50: '#b2ae66',
    500: '#8e8d21',
    950: '#000000',
  },
}
SCSS
$custom: #8e8d21;
$custom-light: #b2ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8d21",
  "rgb": {
    "r": 142,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 59.45,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.62491,
    "c": 0.12408,
    "h": 109
  },
  "luminance": 0.2491
}

Semantic roles & 50–950 ramp

primary
#8E8D21
secondary
#5051BA
accent
#44E542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8E8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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