#20420E#20420E

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

Color values

HEX#20420E
RGBrgb(32, 66, 14)
HSLhsl(99, 65%, 16%)
HSVhsv(99, 79%, 26%)
CMYKcmyk(51.5%, 0%, 78.8%, 74.1%)
CIE-LABlab(24.43, -23.18, 26.55)
CIE-LCHlch(24.43, 35.25, 131.13°)
OKLaboklab(34.08% -0.0643 0.0603)
OKLCHoklch(34.08% 0.088 136.8)
XYZxyz(2.6231, 4.2350, 1.0946)
Luminance0.0423 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20420E #300E42
analogous
#3A420E #20420E #0E4216
triadic
#20420E #0E2042 #420E20
tetradic
#20420E #0E3A42 #300E42 #42160E
square
#20420E #0E3A42 #300E42 #42160E
split-complementary
#20420E #160E42 #420E3A
monochromatic
#0C1905 #0C1905 #20420E #387419 #51A723

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##20420E#FFFFFF#000000##FFFFFF
##20420E1.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)
#443C06
Deuteranopia (green-blind)
#403913
Tritanopia (blue-blind)
#1E3F38
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #20420e;
/* rgb */ color: rgb(32, 66, 14);
/* oklch */ color: oklch(34.1% 0.088 136.8);
Tailwind
colors: {
  custom: {
    50: '#5f7750',
    500: '#20420e',
    950: '#000000',
  },
}
SCSS
$custom: #20420e;
$custom-light: #5f7750;
$custom-dark: #000000;
JSON
{
  "hex": "#20420e",
  "rgb": {
    "r": 32,
    "g": 66,
    "b": 14
  },
  "hsl": {
    "h": 99.231,
    "s": 65,
    "l": 15.686
  },
  "oklch": {
    "l": 0.34081,
    "c": 0.08816,
    "h": 136.8
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#20420E
secondary
#622F7D
accent
#40E8AE
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #20420E

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

Preview Lab → · Contrast checker → · Palette generator →

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