#20420D#20420D

#20420D is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.1% C 0.089 H 136.6°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#20420D
RGBrgb(32, 66, 13)
HSLhsl(98, 67%, 15%)
HSVhsv(98, 80%, 26%)
CMYKcmyk(51.5%, 0%, 80.3%, 74.1%)
CIE-LABlab(24.43, -23.27, 27.00)
CIE-LCHlch(24.43, 35.64, 130.77°)
OKLaboklab(34.07% -0.0646 0.0611)
OKLCHoklch(34.07% 0.089 136.6)
XYZxyz(2.6165, 4.2324, 1.0598)
Luminance0.0423 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20420D #2F0D42
analogous
#3A420D #20420D #0D4215
triadic
#20420D #0D2042 #420D20
tetradic
#20420D #0D3A42 #2F0D42 #42150D
square
#20420D #0D3A42 #2F0D42 #42150D
split-complementary
#20420D #150D42 #420D3A
monochromatic
#0C1A05 #0C1A05 #20420D #397517 #52A821

Accessibility & contrast

On white

11.37
#20420D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#20420D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20420D
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20420D#FFFFFF#000000##FFFFFF
##20420D1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C05
Deuteranopia (green-blind)
#403912
Tritanopia (blue-blind)
#1E3F38
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #20420d;
/* rgb */ color: rgb(32, 66, 13);
/* oklch */ color: oklch(34.1% 0.089 136.6);
Tailwind
colors: {
  custom: {
    50: '#5f774f',
    500: '#20420d',
    950: '#000000',
  },
}
SCSS
$custom: #20420d;
$custom-light: #5f774f;
$custom-dark: #000000;
JSON
{
  "hex": "#20420d",
  "rgb": {
    "r": 32,
    "g": 66,
    "b": 13
  },
  "hsl": {
    "h": 98.491,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.34071,
    "c": 0.08893,
    "h": 136.6
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#20420D
secondary
#612D7E
accent
#3EEAAC
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #20420D

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

Preview Lab → · Contrast checker → · Palette generator →

#20420D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva