#8D8020#8D8020

#8D8020 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.4% C 0.113 H 101.3°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8D8020
RGBrgb(141, 128, 32)
HSLhsl(53, 63%, 34%)
HSVhsv(53, 77%, 55%)
CMYKcmyk(0%, 9.2%, 77.3%, 44.7%)
CIE-LABlab(53.17, -5.99, 50.32)
CIE-LCHlch(53.17, 50.68, 96.79°)
OKLaboklab(59.43% -0.022 0.1103)
OKLCHoklch(59.43% 0.113 101.3)
XYZxyz(18.9653, 21.2062, 4.4605)
Luminance0.2120 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8020 #202D8D
analogous
#8D4A20 #8D8020 #648D20
triadic
#8D8020 #208D80 #80208D
tetradic
#8D8020 #208D4A #202D8D #8D2064
square
#8D8020 #208D4A #202D8D #8D2064
split-complementary
#8D8020 #20648D #4A208D
monochromatic
#292509 #5B5315 #8D8020 #BFAD2B #D7C750

Accessibility & contrast

On white

4.01
#8D8020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#8D8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8020
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8020#FFFFFF#000000##000000
##8D80201.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d8020;
/* rgb */ color: rgb(141, 128, 32);
/* oklch */ color: oklch(59.4% 0.113 101.3);
Tailwind
colors: {
  custom: {
    50: '#b2a463',
    500: '#8d8020',
    950: '#000000',
  },
}
SCSS
$custom: #8d8020;
$custom-light: #b2a463;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8020",
  "rgb": {
    "r": 141,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 52.844,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.5943,
    "c": 0.1125,
    "h": 101.3
  },
  "luminance": 0.21205
}

Semantic roles & 50–950 ramp

primary
#8D8020
secondary
#4E5BBA
accent
#55E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D8020

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

Preview Lab → · Contrast checker → · Palette generator →

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