#408342#408342

#408342 is a mid, moderate green. Relative luminance 0.177; OKLCH L 54.9% C 0.119 H 144.3°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#408342
RGBrgb(64, 131, 66)
HSLhsl(122, 34%, 38%)
HSVhsv(122, 51%, 51%)
CMYKcmyk(51.1%, 0%, 49.6%, 48.6%)
CIE-LABlab(49.15, -35.59, 28.62)
CIE-LCHlch(49.15, 45.67, 141.19°)
OKLaboklab(54.95% -0.0967 0.0695)
OKLCHoklch(54.95% 0.119 144.3)
XYZxyz(11.2134, 17.7151, 7.9817)
Luminance0.1772 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408342 #834081
analogous
#5F8340 #408342 #408363
triadic
#408342 #424083 #834240
tetradic
#408342 #405F83 #834081 #836340
square
#408342 #405F83 #834081 #836340
split-complementary
#408342 #634083 #83405F
monochromatic
#183119 #2C5A2D #408342 #54AC57 #7EC080

Accessibility & contrast

On white

4.62
#408342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#408342 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #408342
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408342#FFFFFF#000000##FFFFFF
##4083421.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85793D
Deuteranopia (green-blind)
#7C7246
Tritanopia (blue-blind)
#368074
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #408342;
/* rgb */ color: rgb(64, 131, 66);
/* oklch */ color: oklch(54.9% 0.119 144.3);
Tailwind
colors: {
  custom: {
    50: '#7aa777',
    500: '#408342',
    950: '#000000',
  },
}
SCSS
$custom: #408342;
$custom-light: #7aa777;
$custom-dark: #000000;
JSON
{
  "hex": "#408342",
  "rgb": {
    "r": 64,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 121.791,
    "s": 34.359,
    "l": 38.235
  },
  "oklch": {
    "l": 0.5495,
    "c": 0.11908,
    "h": 144.3
  },
  "luminance": 0.17716
}

Semantic roles & 50–950 ramp

primary
#408342
secondary
#AA75A9
accent
#5DC7CA
background
#F7FAF7
surface
#EEF4ED
border
#C9CEC8
text
#0A0F09
muted
#7C7F7B

Preview Lab

Preview with #408342

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

Preview Lab → · Contrast checker → · Palette generator →

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