#408C22#408C22

#408C22 is a mid, vivid green. Relative luminance 0.200; OKLCH L 57.0% C 0.158 H 138.5°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#408C22
RGBrgb(64, 140, 34)
HSLhsl(103, 61%, 34%)
HSVhsv(103, 76%, 55%)
CMYKcmyk(54.3%, 0%, 75.7%, 45.1%)
CIE-LABlab(51.79, -42.91, 46.50)
CIE-LCHlch(51.79, 63.28, 132.70°)
OKLaboklab(57.02% -0.1184 0.1047)
OKLCHoklch(57.02% 0.158 138.5)
XYZxyz(11.7807, 19.9607, 4.7451)
Luminance0.1996 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C22 #6E228C
analogous
#758C22 #408C22 #228C39
triadic
#408C22 #22408C #8C2240
tetradic
#408C22 #22758C #6E228C #8C3922
square
#408C22 #22758C #6E228C #8C3922
split-complementary
#408C22 #39228C #8C2275
monochromatic
#132A0A #295B16 #408C22 #57BD2E #78D553

Accessibility & contrast

On white

4.21
#408C22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#408C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408C22
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408C22#FFFFFF#000000##000000
##408C221.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#87792D
Tritanopia (blue-blind)
#398778
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408c22;
/* rgb */ color: rgb(64, 140, 34);
/* oklch */ color: oklch(57.0% 0.158 138.5);
Tailwind
colors: {
  custom: {
    50: '#7dae65',
    500: '#408c22',
    950: '#000000',
  },
}
SCSS
$custom: #408c22;
$custom-light: #7dae65;
$custom-dark: #000000;
JSON
{
  "hex": "#408c22",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 34
  },
  "hsl": {
    "h": 103.019,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57017,
    "c": 0.15804,
    "h": 138.5
  },
  "luminance": 0.19962
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #408C22

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

Preview Lab → · Contrast checker → · Palette generator →

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