#405D1B#405D1B

#405D1B is a dark, moderate yellow-green. Relative luminance 0.090; OKLCH L 44.0% C 0.099 H 130.0°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#405D1B
RGBrgb(64, 93, 27)
HSLhsl(86, 55%, 24%)
HSVhsv(86, 71%, 36%)
CMYKcmyk(31.2%, 0%, 71%, 63.5%)
CIE-LABlab(35.98, -22.49, 33.19)
CIE-LCHlch(35.98, 40.09, 124.12°)
OKLaboklab(44.05% -0.0636 0.0757)
OKLCHoklch(44.05% 0.099 130)
XYZxyz(6.2265, 8.9976, 2.4454)
Luminance0.0900 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D1B #381B5D
analogous
#5D591B #405D1B #1F5D1B
triadic
#405D1B #1B405D #5D1B40
tetradic
#405D1B #1B5D59 #381B5D #5D1B1F
square
#405D1B #1B5D59 #381B5D #5D1B1F
split-complementary
#405D1B #1B1F5D #591B5D
monochromatic
#101807 #1F2E0D #405D1B #618C29 #81BC37

Accessibility & contrast

On white

7.50
#405D1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#405D1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405D1B
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D1B#FFFFFF#000000##FFFFFF
##405D1B1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615612
Deuteranopia (green-blind)
#5D5420
Tritanopia (blue-blind)
#425950
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405d1b;
/* rgb */ color: rgb(64, 93, 27);
/* oklch */ color: oklch(44.0% 0.099 130.0);
Tailwind
colors: {
  custom: {
    50: '#778b5b',
    500: '#405d1b',
    950: '#000000',
  },
}
SCSS
$custom: #405d1b;
$custom-light: #778b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#405d1b",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 27
  },
  "hsl": {
    "h": 86.364,
    "s": 55,
    "l": 23.529
  },
  "oklch": {
    "l": 0.44047,
    "c": 0.09888,
    "h": 130
  },
  "luminance": 0.08998
}

Semantic roles & 50–950 ramp

primary
#405D1B
secondary
#654193
accent
#49DE8B
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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