#408F1B#408F1B

#408F1B is a mid, vivid green. Relative luminance 0.208; OKLCH L 57.8% C 0.166 H 138.1°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#408F1B
RGBrgb(64, 143, 27)
HSLhsl(101, 68%, 33%)
HSVhsv(101, 81%, 56%)
CMYKcmyk(55.2%, 0%, 81.1%, 43.9%)
CIE-LABlab(52.74, -44.55, 49.82)
CIE-LCHlch(52.74, 66.83, 131.80°)
OKLaboklab(57.79% -0.1232 0.1105)
OKLCHoklch(57.79% 0.166 138.1)
XYZxyz(12.1342, 20.8131, 4.4146)
Luminance0.2081 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408F1B #6A1B8F
analogous
#7A8F1B #408F1B #1B8F30
triadic
#408F1B #1B408F #8F1B40
tetradic
#408F1B #1B7A8F #6A1B8F #8F301B
square
#408F1B #1B7A8F #6A1B8F #8F301B
split-complementary
#408F1B #301B8F #8F1B7A
monochromatic
#122808 #295C11 #408F1B #57C225 #77DC48

Accessibility & contrast

On white

4.07
#408F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#408F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408F1B
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408F1B#FFFFFF#000000##000000
##408F1B1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8A7B29
Tritanopia (blue-blind)
#398A7A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #408f1b;
/* rgb */ color: rgb(64, 143, 27);
/* oklch */ color: oklch(57.8% 0.166 138.1);
Tailwind
colors: {
  custom: {
    50: '#7eb062',
    500: '#408f1b',
    950: '#000000',
  },
}
SCSS
$custom: #408f1b;
$custom-light: #7eb062;
$custom-dark: #000000;
JSON
{
  "hex": "#408f1b",
  "rgb": {
    "r": 64,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 100.862,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57789,
    "c": 0.16556,
    "h": 138.1
  },
  "luminance": 0.20814
}

Semantic roles & 50–950 ramp

primary
#408F1B
secondary
#9848BE
accent
#3DEBB3
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1106
muted
#7C807A

Preview Lab

Preview with #408F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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