#405C2C#405C2C

#405C2C is a dark, moderate yellow-green. Relative luminance 0.089; OKLCH L 44.0% C 0.080 H 133.6°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#405C2C
RGBrgb(64, 92, 44)
HSLhsl(95, 35%, 27%)
HSVhsv(95, 52%, 36%)
CMYKcmyk(30.4%, 0%, 52.2%, 63.9%)
CIE-LABlab(35.84, -20.08, 24.20)
CIE-LCHlch(35.84, 31.45, 129.68°)
OKLaboklab(44% -0.0554 0.0582)
OKLCHoklch(44% 0.08 133.6)
XYZxyz(6.3960, 8.9259, 3.7683)
Luminance0.0893 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C2C #482C5C
analogous
#585C2C #405C2C #2C5C30
triadic
#405C2C #2C405C #5C2C40
tetradic
#405C2C #2C585C #482C5C #5C302C
square
#405C2C #2C585C #482C5C #5C302C
split-complementary
#405C2C #302C5C #5C2C58
monochromatic
#0E150A #233318 #405C2C #5D8540 #7AAE55

Accessibility & contrast

On white

7.54
#405C2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#405C2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405C2C
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C2C#FFFFFF#000000##FFFFFF
##405C2C1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5628
Deuteranopia (green-blind)
#5B532F
Tritanopia (blue-blind)
#405951
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405c2c;
/* rgb */ color: rgb(64, 92, 44);
/* oklch */ color: oklch(44.0% 0.080 133.6);
Tailwind
colors: {
  custom: {
    50: '#768a66',
    500: '#405c2c',
    950: '#000000',
  },
}
SCSS
$custom: #405c2c;
$custom-light: #768a66;
$custom-dark: #000000;
JSON
{
  "hex": "#405c2c",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 44
  },
  "hsl": {
    "h": 95,
    "s": 35.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.43998,
    "c": 0.08039,
    "h": 133.6
  },
  "luminance": 0.08926
}

Semantic roles & 50–950 ramp

primary
#405C2C
secondary
#77568E
accent
#5CCB9D
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#080B06
muted
#7B7C7A

Preview Lab

Preview with #405C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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