#20420B#20420B

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

Color values

HEX#20420B
RGBrgb(32, 66, 11)
HSLhsl(97, 71%, 15%)
HSVhsv(97, 83%, 26%)
CMYKcmyk(51.5%, 0%, 83.3%, 74.1%)
CIE-LABlab(24.41, -23.44, 27.85)
CIE-LCHlch(24.41, 36.41, 130.09°)
OKLaboklab(34.05% -0.0652 0.0626)
OKLCHoklch(34.05% 0.09 136.2)
XYZxyz(2.6042, 4.2275, 0.9953)
Luminance0.0423 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20420B #2D0B42
analogous
#3B420B #20420B #0B4211
triadic
#20420B #0B2042 #420B20
tetradic
#20420B #0B3B42 #2D0B42 #42110B
square
#20420B #0B3B42 #2D0B42 #42110B
split-complementary
#20420B #110B42 #420B3B
monochromatic
#0D1A04 #0D1A04 #20420B #397614 #53AB1C

Accessibility & contrast

On white

11.38
#20420B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20420B
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20420B#FFFFFF#000000##FFFFFF
##20420B1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C03
Deuteranopia (green-blind)
#403911
Tritanopia (blue-blind)
#1F3F37
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #20420b;
/* rgb */ color: rgb(32, 66, 11);
/* oklch */ color: oklch(34.1% 0.090 136.2);
Tailwind
colors: {
  custom: {
    50: '#5f774e',
    500: '#20420b',
    950: '#000000',
  },
}
SCSS
$custom: #20420b;
$custom-light: #5f774e;
$custom-dark: #000000;
JSON
{
  "hex": "#20420b",
  "rgb": {
    "r": 32,
    "g": 66,
    "b": 11
  },
  "hsl": {
    "h": 97.091,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.34054,
    "c": 0.09039,
    "h": 136.2
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#20420B
secondary
#5E2A7F
accent
#3AEEA9
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #20420B

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

Preview Lab → · Contrast checker → · Palette generator →

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