#405A42#405A42

#405A42 is a dark, muted green. Relative luminance 0.088; OKLCH L 43.9% C 0.050 H 146.6°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#405A42
RGBrgb(64, 90, 66)
HSLhsl(125, 17%, 30%)
HSVhsv(125, 29%, 35%)
CMYKcmyk(28.9%, 0%, 26.7%, 64.7%)
CIE-LABlab(35.59, -15.26, 10.80)
CIE-LCHlch(35.59, 18.70, 144.72°)
OKLaboklab(43.93% -0.0418 0.0275)
OKLCHoklch(43.93% 0.05 146.6)
XYZxyz(6.7536, 8.7954, 6.4950)
Luminance0.0880 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A42 #5A4058
analogous
#4B5A40 #405A42 #405A4F
triadic
#405A42 #42405A #5A4240
tetradic
#405A42 #404B5A #5A4058 #5A4F40
square
#405A42 #404B5A #5A4058 #5A4F40
split-complementary
#405A42 #4F405A #5A404B
monochromatic
#0D120E #273628 #405A42 #597E5C #769E7A

Accessibility & contrast

On white

7.61
#405A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #405A42
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A42#FFFFFF#000000##FFFFFF
##405A421.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5541
Deuteranopia (green-blind)
#575343
Tritanopia (blue-blind)
#3D5953
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405a42;
/* rgb */ color: rgb(64, 90, 66);
/* oklch */ color: oklch(43.9% 0.050 146.6);
Tailwind
colors: {
  custom: {
    50: '#758876',
    500: '#405a42',
    950: '#000000',
  },
}
SCSS
$custom: #405a42;
$custom-light: #758876;
$custom-dark: #000000;
JSON
{
  "hex": "#405a42",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 66
  },
  "hsl": {
    "h": 124.615,
    "s": 16.883,
    "l": 30.196
  },
  "oklch": {
    "l": 0.43928,
    "c": 0.05002,
    "h": 146.6
  },
  "luminance": 0.08796
}

Semantic roles & 50–950 ramp

primary
#405A42
secondary
#896C87
accent
#6EB4BA
background
#F7F8F7
surface
#EDF0ED
border
#C8CBC8
text
#080B08
muted
#7B7C7B

Preview Lab

Preview with #405A42

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

Preview Lab → · Contrast checker → · Palette generator →

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