#408F1C#408F1C

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

Color values

HEX#408F1C
RGBrgb(64, 143, 28)
HSLhsl(101, 67%, 34%)
HSVhsv(101, 80%, 56%)
CMYKcmyk(55.2%, 0%, 80.4%, 43.9%)
CIE-LABlab(52.75, -44.49, 49.51)
CIE-LCHlch(52.75, 66.56, 131.94°)
OKLaboklab(57.79% -0.123 0.11)
OKLCHoklch(57.79% 0.165 138.2)
XYZxyz(12.1460, 20.8178, 4.4766)
Luminance0.2082 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408F1C #6B1C8F
analogous
#798F1C #408F1C #1C8F31
triadic
#408F1C #1C408F #8F1C40
tetradic
#408F1C #1C798F #6B1C8F #8F311C
square
#408F1C #1C798F #6B1C8F #8F311C
split-complementary
#408F1C #311C8F #8F1C79
monochromatic
#122908 #295C12 #408F1C #57C226 #77DC4A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408F1C#FFFFFF#000000##000000
##408F1C1.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: #408f1c;
/* rgb */ color: rgb(64, 143, 28);
/* oklch */ color: oklch(57.8% 0.165 138.2);
Tailwind
colors: {
  custom: {
    50: '#7eb062',
    500: '#408f1c',
    950: '#000000',
  },
}
SCSS
$custom: #408f1c;
$custom-light: #7eb062;
$custom-dark: #000000;
JSON
{
  "hex": "#408f1c",
  "rgb": {
    "r": 64,
    "g": 143,
    "b": 28
  },
  "hsl": {
    "h": 101.217,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57795,
    "c": 0.16505,
    "h": 138.2
  },
  "luminance": 0.20819
}

Semantic roles & 50–950 ramp

primary
#408F1C
secondary
#9949BE
accent
#3EEAB4
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1106
muted
#7C807A

Preview Lab

Preview with #408F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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