#408F17#408F17

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

Color values

HEX#408F17
RGBrgb(64, 143, 23)
HSLhsl(100, 72%, 33%)
HSVhsv(100, 84%, 56%)
CMYKcmyk(55.2%, 0%, 83.9%, 43.9%)
CIE-LABlab(52.73, -44.76, 50.98)
CIE-LCHlch(52.73, 67.85, 131.28°)
OKLaboklab(57.77% -0.124 0.1124)
OKLCHoklch(57.77% 0.167 137.8)
XYZxyz(12.0910, 20.7958, 4.1873)
Luminance0.2080 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408F17 #66178F
analogous
#7C8F17 #408F17 #178F2A
triadic
#408F17 #17408F #8F1740
tetradic
#408F17 #177C8F #66178F #8F2A17
square
#408F17 #177C8F #66178F #8F2A17
split-complementary
#408F17 #2A178F #8F177C
monochromatic
#112606 #285A0F #408F17 #58C41F #77E040

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408F17#FFFFFF#000000##000000
##408F171.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)
#8A7B26
Tritanopia (blue-blind)
#3A8A79
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #408f17;
/* rgb */ color: rgb(64, 143, 23);
/* oklch */ color: oklch(57.8% 0.167 137.8);
Tailwind
colors: {
  custom: {
    50: '#7eb060',
    500: '#408f17',
    950: '#000000',
  },
}
SCSS
$custom: #408f17;
$custom-light: #7eb060;
$custom-dark: #000000;
JSON
{
  "hex": "#408f17",
  "rgb": {
    "r": 64,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 99.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57767,
    "c": 0.16739,
    "h": 137.8
  },
  "luminance": 0.20797
}

Semantic roles & 50–950 ramp

primary
#408F17
secondary
#9541C1
accent
#39EFB1
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1105
muted
#7C807A

Preview Lab

Preview with #408F17

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

Preview Lab → · Contrast checker → · Palette generator →

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