#8D8021#8D8021

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

Color values

HEX#8D8021
RGBrgb(141, 128, 33)
HSLhsl(53, 62%, 34%)
HSVhsv(53, 77%, 55%)
CMYKcmyk(0%, 9.2%, 76.6%, 44.7%)
CIE-LABlab(53.18, -5.95, 49.96)
CIE-LCHlch(53.18, 50.31, 96.79°)
OKLaboklab(59.44% -0.0217 0.1098)
OKLCHoklch(59.44% 0.112 101.2)
XYZxyz(18.9791, 21.2117, 4.5331)
Luminance0.2121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8021 #212E8D
analogous
#8D4A21 #8D8021 #648D21
triadic
#8D8021 #218D80 #80218D
tetradic
#8D8021 #218D4A #212E8D #8D2164
square
#8D8021 #218D4A #212E8D #8D2164
split-complementary
#8D8021 #21648D #4A218D
monochromatic
#2A260A #5B5315 #8D8021 #BFAD2D #D6C752

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D8021#FFFFFF#000000##000000
##8D80211.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)
#8D7C0E
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#98766E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8d8021;
/* rgb */ color: rgb(141, 128, 33);
/* oklch */ color: oklch(59.4% 0.112 101.2);
Tailwind
colors: {
  custom: {
    50: '#b2a464',
    500: '#8d8021',
    950: '#000000',
  },
}
SCSS
$custom: #8d8021;
$custom-light: #b2a464;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8021",
  "rgb": {
    "r": 141,
    "g": 128,
    "b": 33
  },
  "hsl": {
    "h": 52.778,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59436,
    "c": 0.1119,
    "h": 101.2
  },
  "luminance": 0.21211
}

Semantic roles & 50–950 ramp

primary
#8D8021
secondary
#505DBA
accent
#56E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D8021

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

Preview Lab → · Contrast checker → · Palette generator →

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