#20420C#20420C

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

Color values

HEX#20420C
RGBrgb(32, 66, 12)
HSLhsl(98, 69%, 15%)
HSVhsv(98, 82%, 26%)
CMYKcmyk(51.5%, 0%, 81.8%, 74.1%)
CIE-LABlab(24.42, -23.36, 27.43)
CIE-LCHlch(24.42, 36.03, 130.42°)
OKLaboklab(34.06% -0.0649 0.0619)
OKLCHoklch(34.06% 0.09 136.4)
XYZxyz(2.6102, 4.2299, 1.0267)
Luminance0.0423 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20420C #2E0C42
analogous
#3B420C #20420C #0C4213
triadic
#20420C #0C2042 #420C20
tetradic
#20420C #0C3B42 #2E0C42 #42130C
square
#20420C #0C3B42 #2E0C42 #42130C
split-complementary
#20420C #130C42 #420C3B
monochromatic
#0D1A05 #0D1A05 #20420C #397615 #52AA1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##20420C#FFFFFF#000000##FFFFFF
##20420C1.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)
#453C04
Deuteranopia (green-blind)
#403911
Tritanopia (blue-blind)
#1E3F37
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #20420c;
/* rgb */ color: rgb(32, 66, 12);
/* oklch */ color: oklch(34.1% 0.090 136.4);
Tailwind
colors: {
  custom: {
    50: '#5f774f',
    500: '#20420c',
    950: '#000000',
  },
}
SCSS
$custom: #20420c;
$custom-light: #5f774f;
$custom-dark: #000000;
JSON
{
  "hex": "#20420c",
  "rgb": {
    "r": 32,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 97.778,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.34062,
    "c": 0.08968,
    "h": 136.4
  },
  "luminance": 0.0423
}

Semantic roles & 50–950 ramp

primary
#20420C
secondary
#602C7E
accent
#3CECAB
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #20420C

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

Preview Lab → · Contrast checker → · Palette generator →

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