#405F1B#405F1B

#405F1B is a dark, moderate yellow-green. Relative luminance 0.094; OKLCH L 44.6% C 0.102 H 130.7°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#405F1B
RGBrgb(64, 95, 27)
HSLhsl(87, 56%, 24%)
HSVhsv(87, 72%, 37%)
CMYKcmyk(32.6%, 0%, 71.6%, 62.7%)
CIE-LABlab(36.66, -23.50, 33.91)
CIE-LCHlch(36.66, 41.26, 124.73°)
OKLaboklab(44.6% -0.0664 0.0772)
OKLCHoklch(44.6% 0.102 130.7)
XYZxyz(6.4043, 9.3533, 2.5046)
Luminance0.0935 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F1B #3A1B5F
analogous
#5F5C1B #405F1B #1E5F1B
triadic
#405F1B #1B405F #5F1B40
tetradic
#405F1B #1B5F5C #3A1B5F #5F1B1E
square
#405F1B #1B5F5C #3A1B5F #5F1B1E
split-complementary
#405F1B #1B1E5F #5C1B5F
monochromatic
#101807 #202F0D #405F1B #608F29 #80BE36

Accessibility & contrast

On white

7.32
#405F1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#405F1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405F1B
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F1B#FFFFFF#000000##FFFFFF
##405F1B1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635812
Deuteranopia (green-blind)
#5F5521
Tritanopia (blue-blind)
#415B51
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #405f1b;
/* rgb */ color: rgb(64, 95, 27);
/* oklch */ color: oklch(44.6% 0.102 130.7);
Tailwind
colors: {
  custom: {
    50: '#788c5b',
    500: '#405f1b',
    950: '#000000',
  },
}
SCSS
$custom: #405f1b;
$custom-light: #788c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#405f1b",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 27
  },
  "hsl": {
    "h": 87.353,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.44596,
    "c": 0.10183,
    "h": 130.7
  },
  "luminance": 0.09354
}

Semantic roles & 50–950 ramp

primary
#405F1B
secondary
#674195
accent
#49DF8D
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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