#20400B#20400B

#20400B is a dark, moderate yellow-green. Relative luminance 0.040; OKLCH L 33.4% C 0.087 H 135.8°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#20400B
RGBrgb(32, 64, 11)
HSLhsl(96, 71%, 15%)
HSVhsv(96, 83%, 25%)
CMYKcmyk(50%, 0%, 82.8%, 74.9%)
CIE-LABlab(23.66, -22.48, 27.11)
CIE-LCHlch(23.66, 35.22, 129.66°)
OKLaboklab(33.44% -0.0626 0.061)
OKLCHoklch(33.44% 0.087 135.8)
XYZxyz(2.4894, 3.9979, 0.9570)
Luminance0.0400 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20400B #2B0B40
analogous
#3B400B #20400B #0B4010
triadic
#20400B #0B2040 #400B20
tetradic
#20400B #0B3B40 #2B0B40 #40100B
square
#20400B #0B3B40 #2B0B40 #40100B
split-complementary
#20400B #100B40 #400B3B
monochromatic
#0D1A04 #0D1A04 #20400B #3A7414 #54A81D

Accessibility & contrast

On white

11.67
#20400B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#20400B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20400B
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20400B#FFFFFF#000000##FFFFFF
##20400B1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A03
Deuteranopia (green-blind)
#3E3710
Tritanopia (blue-blind)
#1F3D36
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #20400b;
/* rgb */ color: rgb(32, 64, 11);
/* oklch */ color: oklch(33.4% 0.087 135.8);
Tailwind
colors: {
  custom: {
    50: '#5f754e',
    500: '#20400b',
    950: '#000000',
  },
}
SCSS
$custom: #20400b;
$custom-light: #5f754e;
$custom-dark: #000000;
JSON
{
  "hex": "#20400b",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 11
  },
  "hsl": {
    "h": 96.226,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.33442,
    "c": 0.08743,
    "h": 135.8
  },
  "luminance": 0.03998
}

Semantic roles & 50–950 ramp

primary
#20400B
secondary
#5C2A7D
accent
#3AEDA6
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #20400B

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

Preview Lab → · Contrast checker → · Palette generator →

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