#408142#408142

#408142 is a mid, moderate green. Relative luminance 0.172; OKLCH L 54.4% C 0.116 H 144.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#408142
RGBrgb(64, 129, 66)
HSLhsl(122, 34%, 38%)
HSVhsv(122, 50%, 51%)
CMYKcmyk(50.4%, 0%, 48.8%, 49.4%)
CIE-LABlab(48.49, -34.70, 27.80)
CIE-LCHlch(48.49, 44.46, 141.30°)
OKLaboklab(54.41% -0.0943 0.0676)
OKLCHoklch(54.41% 0.116 144.4)
XYZxyz(10.9474, 17.1830, 7.8930)
Luminance0.1718 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408142 #81407F
analogous
#5E8140 #408142 #408162
triadic
#408142 #424081 #814240
tetradic
#408142 #405E81 #81407F #816240
square
#408142 #405E81 #81407F #816240
split-complementary
#408142 #624081 #81405E
monochromatic
#172F18 #2C582D #408142 #54AA57 #7DBE7F

Accessibility & contrast

On white

4.73
#408142 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#408142 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408142
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408142#FFFFFF#000000##FFFFFF
##4081421.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83773D
Deuteranopia (green-blind)
#7A7146
Tritanopia (blue-blind)
#377E72
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #408142;
/* rgb */ color: rgb(64, 129, 66);
/* oklch */ color: oklch(54.4% 0.116 144.4);
Tailwind
colors: {
  custom: {
    50: '#7aa677',
    500: '#408142',
    950: '#000000',
  },
}
SCSS
$custom: #408142;
$custom-light: #7aa677;
$custom-dark: #000000;
JSON
{
  "hex": "#408142",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 66
  },
  "hsl": {
    "h": 121.846,
    "s": 33.679,
    "l": 37.843
  },
  "oklch": {
    "l": 0.54411,
    "c": 0.11606,
    "h": 144.4
  },
  "luminance": 0.17184
}

Semantic roles & 50–950 ramp

primary
#408142
secondary
#A974A7
accent
#5EC6CA
background
#F7FAF7
surface
#EEF4ED
border
#C9CEC8
text
#090F09
muted
#7B7F7B

Preview Lab

Preview with #408142

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

Preview Lab → · Contrast checker → · Palette generator →

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