#405B1C#405B1C

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

Color values

HEX#405B1C
RGBrgb(64, 91, 28)
HSLhsl(86, 53%, 23%)
HSVhsv(86, 69%, 36%)
CMYKcmyk(29.7%, 0%, 69.2%, 64.3%)
CIE-LABlab(35.31, -21.37, 32.01)
CIE-LCHlch(35.31, 38.49, 123.73°)
OKLaboklab(43.51% -0.0604 0.0734)
OKLCHoklch(43.51% 0.095 129.5)
XYZxyz(6.0650, 8.6558, 2.4496)
Luminance0.0866 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B1C #371C5B
analogous
#5B561C #405B1C #205B1C
triadic
#405B1C #1C405B #5B1C40
tetradic
#405B1C #1C5B56 #371C5B #5B1C20
square
#405B1C #1C5B56 #371C5B #5B1C20
split-complementary
#405B1C #1C205B #561C5B
monochromatic
#101707 #1F2C0E #405B1C #618A2A #82B939

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405B1C#FFFFFF#000000##FFFFFF
##405B1C1.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)
#5F5414
Deuteranopia (green-blind)
#5C5221
Tritanopia (blue-blind)
#42574E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405b1c;
/* rgb */ color: rgb(64, 91, 28);
/* oklch */ color: oklch(43.5% 0.095 129.5);
Tailwind
colors: {
  custom: {
    50: '#77895c',
    500: '#405b1c',
    950: '#000000',
  },
}
SCSS
$custom: #405b1c;
$custom-light: #77895c;
$custom-dark: #000000;
JSON
{
  "hex": "#405b1c",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 28
  },
  "hsl": {
    "h": 85.714,
    "s": 52.941,
    "l": 23.333
  },
  "oklch": {
    "l": 0.43508,
    "c": 0.09506,
    "h": 129.5
  },
  "luminance": 0.08656
}

Semantic roles & 50–950 ramp

primary
#405B1C
secondary
#644290
accent
#4BDC8A
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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