#405838#405838

#405838 is a dark, muted green. Relative luminance 0.084; OKLCH L 43.2% C 0.059 H 138.1°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#405838
RGBrgb(64, 88, 56)
HSLhsl(105, 22%, 28%)
HSVhsv(105, 36%, 35%)
CMYKcmyk(27.3%, 0%, 36.4%, 65.5%)
CIE-LABlab(34.71, -16.04, 15.72)
CIE-LCHlch(34.71, 22.46, 135.59°)
OKLaboklab(43.15% -0.0437 0.0393)
OKLCHoklch(43.15% 0.059 138.1)
XYZxyz(6.3177, 8.3548, 5.0204)
Luminance0.0835 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405838 #503858
analogous
#505838 #405838 #385840
triadic
#405838 #384058 #583840
tetradic
#405838 #385058 #503858 #584038
square
#405838 #385058 #503858 #584038
split-complementary
#405838 #403858 #583850
monochromatic
#0E130C #253320 #405838 #5B7D50 #78A06A

Accessibility & contrast

On white

7.86
#405838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#405838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405838
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405838#FFFFFF#000000##FFFFFF
##4058381.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5336
Deuteranopia (green-blind)
#56513A
Tritanopia (blue-blind)
#3F5650
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405838;
/* rgb */ color: rgb(64, 88, 56);
/* oklch */ color: oklch(43.2% 0.059 138.1);
Tailwind
colors: {
  custom: {
    50: '#75876f',
    500: '#405838',
    950: '#000000',
  },
}
SCSS
$custom: #405838;
$custom-light: #75876f;
$custom-dark: #000000;
JSON
{
  "hex": "#405838",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 56
  },
  "hsl": {
    "h": 105,
    "s": 22.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.43152,
    "c": 0.0588,
    "h": 138.1
  },
  "luminance": 0.08355
}

Semantic roles & 50–950 ramp

primary
#405838
secondary
#7F6488
accent
#69BFA9
background
#F7F8F6
surface
#EDEFEC
border
#C8CAC7
text
#080B07
muted
#7B7C7A

Preview Lab

Preview with #405838

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

Preview Lab → · Contrast checker → · Palette generator →

#405838 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva