#405D2D#405D2D

#405D2D is a dark, moderate yellow-green. Relative luminance 0.091; OKLCH L 44.3% C 0.081 H 134.2°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#405D2D
RGBrgb(64, 93, 45)
HSLhsl(96, 35%, 27%)
HSVhsv(96, 52%, 36%)
CMYKcmyk(31.2%, 0%, 51.6%, 63.5%)
CIE-LABlab(36.19, -20.47, 24.07)
CIE-LCHlch(36.19, 31.60, 130.38°)
OKLaboklab(44.29% -0.0564 0.058)
OKLCHoklch(44.29% 0.081 134.2)
XYZxyz(6.5022, 9.1079, 3.8975)
Luminance0.0911 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D2D #4A2D5D
analogous
#585D2D #405D2D #2D5D32
triadic
#405D2D #2D405D #5D2D40
tetradic
#405D2D #2D585D #4A2D5D #5D322D
square
#405D2D #2D585D #4A2D5D #5D322D
split-complementary
#405D2D #322D5D #5D2D58
monochromatic
#0E150A #243419 #405D2D #5C8641 #79AE57

Accessibility & contrast

On white

7.44
#405D2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#405D2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405D2D
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D2D#FFFFFF#000000##FFFFFF
##405D2D1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605729
Deuteranopia (green-blind)
#5C5430
Tritanopia (blue-blind)
#405A52
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405d2d;
/* rgb */ color: rgb(64, 93, 45);
/* oklch */ color: oklch(44.3% 0.081 134.2);
Tailwind
colors: {
  custom: {
    50: '#768b67',
    500: '#405d2d',
    950: '#000000',
  },
}
SCSS
$custom: #405d2d;
$custom-light: #768b67;
$custom-dark: #000000;
JSON
{
  "hex": "#405d2d",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 45
  },
  "hsl": {
    "h": 96.25,
    "s": 34.783,
    "l": 27.059
  },
  "oklch": {
    "l": 0.44287,
    "c": 0.08094,
    "h": 134.2
  },
  "luminance": 0.09108
}

Semantic roles & 50–950 ramp

primary
#405D2D
secondary
#79578F
accent
#5DCB9F
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#090C06
muted
#7B7D7A

Preview Lab

Preview with #405D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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