#408817#408817

#408817 is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 55.9% C 0.159 H 137.2°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#408817
RGBrgb(64, 136, 23)
HSLhsl(98, 71%, 31%)
HSVhsv(98, 83%, 53%)
CMYKcmyk(52.9%, 0%, 83.1%, 46.7%)
CIE-LABlab(50.40, -42.03, 48.86)
CIE-LCHlch(50.40, 64.45, 130.70°)
OKLaboklab(55.85% -0.1167 0.1079)
OKLCHoklch(55.85% 0.159 137.2)
XYZxyz(11.0728, 18.7593, 3.8479)
Luminance0.1876 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408817 #5F1788
analogous
#788817 #408817 #178826
triadic
#408817 #174088 #881740
tetradic
#408817 #177888 #5F1788 #882617
square
#408817 #177888 #5F1788 #882617
split-complementary
#408817 #261788 #881778
monochromatic
#0F1F05 #27540E #408817 #59BC20 #76DE3B

Accessibility & contrast

On white

4.42
#408817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#408817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408817
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408817#FFFFFF#000000##000000
##4088171.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#837625
Tritanopia (blue-blind)
#3B8374
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #408817;
/* rgb */ color: rgb(64, 136, 23);
/* oklch */ color: oklch(55.9% 0.159 137.2);
Tailwind
colors: {
  custom: {
    50: '#7dab5f',
    500: '#408817',
    950: '#000000',
  },
}
SCSS
$custom: #408817;
$custom-light: #7dab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408817",
  "rgb": {
    "r": 64,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 98.23,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55854,
    "c": 0.15896,
    "h": 137.2
  },
  "luminance": 0.1876
}

Semantic roles & 50–950 ramp

primary
#408817
secondary
#8F3FBC
accent
#3AEEAD
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #408817

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

Preview Lab → · Contrast checker → · Palette generator →

#408817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva