#405C1B#405C1B

#405C1B is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.8% C 0.097 H 129.7°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#405C1B
RGBrgb(64, 92, 27)
HSLhsl(86, 55%, 23%)
HSVhsv(86, 71%, 36%)
CMYKcmyk(30.4%, 0%, 70.7%, 63.9%)
CIE-LABlab(35.64, -21.98, 32.83)
CIE-LCHlch(35.64, 39.51, 123.80°)
OKLaboklab(43.77% -0.0622 0.075)
OKLCHoklch(43.77% 0.097 129.7)
XYZxyz(6.1393, 8.8232, 2.4163)
Luminance0.0882 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C1B #371B5C
analogous
#5C571B #405C1B #1F5C1B
triadic
#405C1B #1B405C #5C1B40
tetradic
#405C1B #1B5C57 #371B5C #5C1B1F
square
#405C1B #1B5C57 #371B5C #5C1B1F
split-complementary
#405C1B #1B1F5C #571B5C
monochromatic
#101807 #1F2D0D #405C1B #618B29 #82BB37

Accessibility & contrast

On white

7.60
#405C1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#405C1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405C1B
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C1B#FFFFFF#000000##FFFFFF
##405C1B1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605512
Deuteranopia (green-blind)
#5D5320
Tritanopia (blue-blind)
#42584F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405c1b;
/* rgb */ color: rgb(64, 92, 27);
/* oklch */ color: oklch(43.8% 0.097 129.7);
Tailwind
colors: {
  custom: {
    50: '#778a5b',
    500: '#405c1b',
    950: '#000000',
  },
}
SCSS
$custom: #405c1b;
$custom-light: #778a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#405c1b",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 27
  },
  "hsl": {
    "h": 85.846,
    "s": 54.622,
    "l": 23.333
  },
  "oklch": {
    "l": 0.43772,
    "c": 0.0974,
    "h": 129.7
  },
  "luminance": 0.08823
}

Semantic roles & 50–950 ramp

primary
#405C1B
secondary
#644192
accent
#4ADE8A
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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