#20400A#20400A

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

Color values

HEX#20400A
RGBrgb(32, 64, 10)
HSLhsl(96, 73%, 15%)
HSVhsv(96, 84%, 25%)
CMYKcmyk(50%, 0%, 84.4%, 74.9%)
CIE-LABlab(23.66, -22.56, 27.52)
CIE-LCHlch(23.66, 35.59, 129.34°)
OKLaboklab(33.43% -0.0629 0.0617)
OKLCHoklch(33.43% 0.088 135.6)
XYZxyz(2.4838, 3.9956, 0.9275)
Luminance0.0400 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20400A #2A0A40
analogous
#3B400A #20400A #0A400F
triadic
#20400A #0A2040 #400A20
tetradic
#20400A #0A3B40 #2A0A40 #400F0A
square
#20400A #0A3B40 #2A0A40 #400F0A
split-complementary
#20400A #0F0A40 #400A3B
monochromatic
#0D1A04 #0D1A04 #20400A #3A7512 #55AA1B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##20400A#FFFFFF#000000##FFFFFF
##20400A1.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)
#433A02
Deuteranopia (green-blind)
#3E370F
Tritanopia (blue-blind)
#1F3D36
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #20400a;
/* rgb */ color: rgb(32, 64, 10);
/* oklch */ color: oklch(33.4% 0.088 135.6);
Tailwind
colors: {
  custom: {
    50: '#5f754d',
    500: '#20400a',
    950: '#000000',
  },
}
SCSS
$custom: #20400a;
$custom-light: #5f754d;
$custom-dark: #000000;
JSON
{
  "hex": "#20400a",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 10
  },
  "hsl": {
    "h": 95.556,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.33434,
    "c": 0.08814,
    "h": 135.6
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#20400A
secondary
#5B297D
accent
#38F0A5
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050801
muted
#797B77

Preview Lab

Preview with #20400A

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

Preview Lab → · Contrast checker → · Palette generator →

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