#20400D#20400D

#20400D is a dark, moderate yellow-green. Relative luminance 0.040; OKLCH L 33.5% C 0.086 H 136.2°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#20400D
RGBrgb(32, 64, 13)
HSLhsl(98, 66%, 15%)
HSVhsv(98, 80%, 25%)
CMYKcmyk(50%, 0%, 79.7%, 74.9%)
CIE-LABlab(23.68, -22.31, 26.23)
CIE-LCHlch(23.68, 34.44, 130.38°)
OKLaboklab(33.46% -0.062 0.0595)
OKLCHoklch(33.46% 0.086 136.2)
XYZxyz(2.5016, 4.0028, 1.0215)
Luminance0.0400 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20400D #2D0D40
analogous
#39400D #20400D #0D4013
triadic
#20400D #0D2040 #400D20
tetradic
#20400D #0D3940 #2D0D40 #40130D
square
#20400D #0D3940 #2D0D40 #40130D
split-complementary
#20400D #130D40 #400D39
monochromatic
#0D1905 #0D1905 #20400D #397317 #53A622

Accessibility & contrast

On white

11.66
#20400D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20400D
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20400D#FFFFFF#000000##FFFFFF
##20400D1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20400d;
/* rgb */ color: rgb(32, 64, 13);
/* oklch */ color: oklch(33.5% 0.086 136.2);
Tailwind
colors: {
  custom: {
    50: '#5f754f',
    500: '#20400d',
    950: '#000000',
  },
}
SCSS
$custom: #20400d;
$custom-light: #5f754f;
$custom-dark: #000000;
JSON
{
  "hex": "#20400d",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 13
  },
  "hsl": {
    "h": 97.647,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.3346,
    "c": 0.08593,
    "h": 136.2
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

primary
#20400D
secondary
#5E2D7C
accent
#3FE9AA
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #20400D

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

Preview Lab → · Contrast checker → · Palette generator →

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