#405B1B#405B1B

#405B1B is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.5% C 0.096 H 129.3°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#405B1B
RGBrgb(64, 91, 27)
HSLhsl(85, 54%, 23%)
HSVhsv(85, 70%, 36%)
CMYKcmyk(29.7%, 0%, 70.3%, 64.3%)
CIE-LABlab(35.30, -21.46, 32.47)
CIE-LCHlch(35.30, 38.93, 123.46°)
OKLaboklab(43.5% -0.0608 0.0742)
OKLCHoklch(43.5% 0.096 129.3)
XYZxyz(6.0532, 8.6511, 2.3876)
Luminance0.0865 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B1B #361B5B
analogous
#5B561B #405B1B #205B1B
triadic
#405B1B #1B405B #5B1B40
tetradic
#405B1B #1B5B56 #361B5B #5B1B20
square
#405B1B #1B5B56 #361B5B #5B1B20
split-complementary
#405B1B #1B205B #561B5B
monochromatic
#111807 #1F2C0D #405B1B #618A29 #82B937

Accessibility & contrast

On white

7.69
#405B1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#405B1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405B1B
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B1B#FFFFFF#000000##FFFFFF
##405B1B1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405b1b;
/* rgb */ color: rgb(64, 91, 27);
/* oklch */ color: oklch(43.5% 0.096 129.3);
Tailwind
colors: {
  custom: {
    50: '#77895b',
    500: '#405b1b',
    950: '#000000',
  },
}
SCSS
$custom: #405b1b;
$custom-light: #77895b;
$custom-dark: #000000;
JSON
{
  "hex": "#405b1b",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 27
  },
  "hsl": {
    "h": 85.313,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.43498,
    "c": 0.09593,
    "h": 129.3
  },
  "luminance": 0.08651
}

Semantic roles & 50–950 ramp

primary
#405B1B
secondary
#634191
accent
#4ADE88
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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