#405E1B#405E1B

#405E1B is a dark, moderate yellow-green. Relative luminance 0.092; OKLCH L 44.3% C 0.100 H 130.3°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#405E1B
RGBrgb(64, 94, 27)
HSLhsl(87, 55%, 24%)
HSVhsv(87, 71%, 37%)
CMYKcmyk(31.9%, 0%, 71.3%, 63.1%)
CIE-LABlab(36.32, -23.00, 33.55)
CIE-LCHlch(36.32, 40.68, 124.43°)
OKLaboklab(44.32% -0.065 0.0765)
OKLCHoklch(44.32% 0.1 130.3)
XYZxyz(6.3148, 9.1743, 2.4748)
Luminance0.0917 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405E1B #391B5E
analogous
#5E5A1B #405E1B #1E5E1B
triadic
#405E1B #1B405E #5E1B40
tetradic
#405E1B #1B5E5A #391B5E #5E1B1E
square
#405E1B #1B5E5A #391B5E #5E1B1E
split-complementary
#405E1B #1B1E5E #5A1B5E
monochromatic
#101807 #202E0D #405E1B #608E29 #81BD36

Accessibility & contrast

On white

7.41
#405E1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#405E1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405E1B
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405E1B#FFFFFF#000000##FFFFFF
##405E1B1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625712
Deuteranopia (green-blind)
#5E5520
Tritanopia (blue-blind)
#425A50
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405e1b;
/* rgb */ color: rgb(64, 94, 27);
/* oklch */ color: oklch(44.3% 0.100 130.3);
Tailwind
colors: {
  custom: {
    50: '#778c5b',
    500: '#405e1b',
    950: '#000000',
  },
}
SCSS
$custom: #405e1b;
$custom-light: #778c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#405e1b",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 27
  },
  "hsl": {
    "h": 86.866,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.44322,
    "c": 0.10036,
    "h": 130.3
  },
  "luminance": 0.09175
}

Semantic roles & 50–950 ramp

primary
#405E1B
secondary
#664194
accent
#49DF8C
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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