#405B20#405B20

#405B20 is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.6% C 0.091 H 130.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#405B20
RGBrgb(64, 91, 32)
HSLhsl(87, 48%, 24%)
HSVhsv(87, 65%, 36%)
CMYKcmyk(29.7%, 0%, 64.8%, 64.3%)
CIE-LABlab(35.35, -20.99, 30.08)
CIE-LCHlch(35.35, 36.68, 124.90°)
OKLaboklab(43.55% -0.059 0.0699)
OKLCHoklch(43.55% 0.091 130.2)
XYZxyz(6.1161, 8.6763, 2.7187)
Luminance0.0868 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B20 #3B205B
analogous
#5B5920 #405B20 #235B20
triadic
#405B20 #20405B #5B2040
tetradic
#405B20 #205B59 #3B205B #5B2023
square
#405B20 #205B59 #3B205B #5B2023
split-complementary
#405B20 #20235B #59205B
monochromatic
#101708 #202E10 #405B20 #608830 #80B640

Accessibility & contrast

On white

7.68
#405B20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#405B20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405B20
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B20#FFFFFF#000000##FFFFFF
##405B201.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5419
Deuteranopia (green-blind)
#5B5224
Tritanopia (blue-blind)
#42574E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405b20;
/* rgb */ color: rgb(64, 91, 32);
/* oklch */ color: oklch(43.6% 0.091 130.2);
Tailwind
colors: {
  custom: {
    50: '#77895e',
    500: '#405b20',
    950: '#000000',
  },
}
SCSS
$custom: #405b20;
$custom-light: #77895e;
$custom-dark: #000000;
JSON
{
  "hex": "#405b20",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 32
  },
  "hsl": {
    "h": 87.458,
    "s": 47.967,
    "l": 24.118
  },
  "oklch": {
    "l": 0.43554,
    "c": 0.09141,
    "h": 130.2
  },
  "luminance": 0.08676
}

Semantic roles & 50–950 ramp

primary
#405B20
secondary
#68478F
accent
#50D88E
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405B20

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

Preview Lab → · Contrast checker → · Palette generator →

#405B20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva