#408D22#408D22

#408D22 is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.3% C 0.159 H 138.6°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#408D22
RGBrgb(64, 141, 34)
HSLhsl(103, 61%, 34%)
HSVhsv(103, 76%, 55%)
CMYKcmyk(54.6%, 0%, 75.9%, 44.7%)
CIE-LABlab(52.12, -43.31, 46.83)
CIE-LCHlch(52.12, 63.79, 132.76°)
OKLaboklab(57.29% -0.1195 0.1053)
OKLCHoklch(57.29% 0.159 138.6)
XYZxyz(11.9275, 20.2543, 4.7940)
Luminance0.2026 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D22 #6F228D
analogous
#768D22 #408D22 #228D3A
triadic
#408D22 #22408D #8D2240
tetradic
#408D22 #22768D #6F228D #8D3A22
square
#408D22 #22768D #6F228D #8D3A22
split-complementary
#408D22 #3A228D #8D2276
monochromatic
#132A0A #2A5C16 #408D22 #56BE2E #78D654

Accessibility & contrast

On white

4.16
#408D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#408D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408D22
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408D22#FFFFFF#000000##000000
##408D221.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800C
Deuteranopia (green-blind)
#887A2D
Tritanopia (blue-blind)
#398878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408d22;
/* rgb */ color: rgb(64, 141, 34);
/* oklch */ color: oklch(57.3% 0.159 138.6);
Tailwind
colors: {
  custom: {
    50: '#7daf65',
    500: '#408d22',
    950: '#000000',
  },
}
SCSS
$custom: #408d22;
$custom-light: #7daf65;
$custom-dark: #000000;
JSON
{
  "hex": "#408d22",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 103.178,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.5729,
    "c": 0.15929,
    "h": 138.6
  },
  "luminance": 0.20255
}

Semantic roles & 50–950 ramp

primary
#408D22
secondary
#9C51B9
accent
#44E4B7
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #408D22

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

Preview Lab → · Contrast checker → · Palette generator →

#408D22 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva