#20420F#20420F

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

Color values

HEX#20420F
RGBrgb(32, 66, 15)
HSLhsl(100, 63%, 16%)
HSVhsv(100, 77%, 26%)
CMYKcmyk(51.5%, 0%, 77.3%, 74.1%)
CIE-LABlab(24.44, -23.09, 26.09)
CIE-LCHlch(24.44, 34.84, 131.51°)
OKLaboklab(34.09% -0.064 0.0595)
OKLCHoklch(34.09% 0.087 137.1)
XYZxyz(2.6300, 4.2378, 1.1312)
Luminance0.0424 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20420F #310F42
analogous
#39420F #20420F #0F4217
triadic
#20420F #0F2042 #420F20
tetradic
#20420F #0F3942 #310F42 #42170F
square
#20420F #0F3942 #310F42 #42170F
split-complementary
#20420F #170F42 #420F39
monochromatic
#0C1906 #0C1906 #20420F #38741A #50A626

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##20420F#FFFFFF#000000##FFFFFF
##20420F1.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)
#443C08
Deuteranopia (green-blind)
#403914
Tritanopia (blue-blind)
#1E3F38
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #20420f;
/* rgb */ color: rgb(32, 66, 15);
/* oklch */ color: oklch(34.1% 0.087 137.1);
Tailwind
colors: {
  custom: {
    50: '#5f7750',
    500: '#20420f',
    950: '#000000',
  },
}
SCSS
$custom: #20420f;
$custom-light: #5f7750;
$custom-dark: #000000;
JSON
{
  "hex": "#20420f",
  "rgb": {
    "r": 32,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 100,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.34091,
    "c": 0.08736,
    "h": 137.1
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#20420F
secondary
#63307C
accent
#42E6AF
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #20420F

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

Preview Lab → · Contrast checker → · Palette generator →

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