#20400C#20400C

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

Color values

HEX#20400C
RGBrgb(32, 64, 12)
HSLhsl(97, 68%, 15%)
HSVhsv(97, 81%, 25%)
CMYKcmyk(50%, 0%, 81.2%, 74.9%)
CIE-LABlab(23.67, -22.40, 26.68)
CIE-LCHlch(23.67, 34.83, 130.01°)
OKLaboklab(33.45% -0.0623 0.0603)
OKLCHoklch(33.45% 0.087 136)
XYZxyz(2.4954, 4.0003, 0.9884)
Luminance0.0400 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20400C #2C0C40
analogous
#3A400C #20400C #0C4012
triadic
#20400C #0C2040 #400C20
tetradic
#20400C #0C3A40 #2C0C40 #40120C
square
#20400C #0C3A40 #2C0C40 #40120C
split-complementary
#20400C #120C40 #400C3A
monochromatic
#0D1A05 #0D1A05 #20400C #3A7416 #54A71F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##20400C#FFFFFF#000000##FFFFFF
##20400C1.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)
#433A04
Deuteranopia (green-blind)
#3E3711
Tritanopia (blue-blind)
#1F3D36
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #20400c;
/* rgb */ color: rgb(32, 64, 12);
/* oklch */ color: oklch(33.5% 0.087 136.0);
Tailwind
colors: {
  custom: {
    50: '#5f754e',
    500: '#20400c',
    950: '#000000',
  },
}
SCSS
$custom: #20400c;
$custom-light: #5f754e;
$custom-dark: #000000;
JSON
{
  "hex": "#20400c",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 96.923,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.33451,
    "c": 0.0867,
    "h": 136
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#20400C
secondary
#5D2C7C
accent
#3DEBA8
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050802
muted
#797B78

Preview Lab

Preview with #20400C

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

Preview Lab → · Contrast checker → · Palette generator →

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