#8E8020#8E8020

#8E8020 is a mid, moderate yellow. Relative luminance 0.213; OKLCH L 59.5% C 0.112 H 100.6°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8E8020
RGBrgb(142, 128, 32)
HSLhsl(52, 63%, 34%)
HSVhsv(52, 77%, 56%)
CMYKcmyk(0%, 9.9%, 77.5%, 44.3%)
CIE-LABlab(53.27, -5.53, 50.44)
CIE-LCHlch(53.27, 50.75, 96.25°)
OKLaboklab(59.53% -0.0207 0.1106)
OKLCHoklch(59.53% 0.112 100.6)
XYZxyz(19.1361, 21.2943, 4.4685)
Luminance0.2129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8020 #202E8E
analogous
#8E4920 #8E8020 #658E20
triadic
#8E8020 #208E80 #80208E
tetradic
#8E8020 #208E49 #202E8E #8E2065
square
#8E8020 #208E49 #202E8E #8E2065
split-complementary
#8E8020 #20658E #49208E
monochromatic
#2A2609 #5C5315 #8E8020 #C0AD2B #D8C751

Accessibility & contrast

On white

3.99
#8E8020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#8E8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8020
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8020#FFFFFF#000000##000000
##8E80201.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C0C
Deuteranopia (green-blind)
#918227
Tritanopia (blue-blind)
#99766E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8e8020;
/* rgb */ color: rgb(142, 128, 32);
/* oklch */ color: oklch(59.5% 0.112 100.6);
Tailwind
colors: {
  custom: {
    50: '#b3a464',
    500: '#8e8020',
    950: '#000000',
  },
}
SCSS
$custom: #8e8020;
$custom-light: #b3a464;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8020",
  "rgb": {
    "r": 142,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 52.364,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59528,
    "c": 0.11247,
    "h": 100.6
  },
  "luminance": 0.21293
}

Semantic roles & 50–950 ramp

primary
#8E8020
secondary
#4F5DBB
accent
#57E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E8020

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

Preview Lab → · Contrast checker → · Palette generator →

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