#408517#408517

#408517 is a mid, vivid yellow-green. Relative luminance 0.179; OKLCH L 55.0% C 0.155 H 137.0°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#408517
RGBrgb(64, 133, 23)
HSLhsl(98, 71%, 31%)
HSVhsv(98, 83%, 52%)
CMYKcmyk(51.9%, 0%, 82.7%, 47.8%)
CIE-LABlab(49.41, -40.83, 47.94)
CIE-LCHlch(49.41, 62.97, 130.42°)
OKLaboklab(55.03% -0.1135 0.106)
OKLCHoklch(55.03% 0.155 137)
XYZxyz(10.6562, 17.9261, 3.7090)
Luminance0.1793 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408517 #5C1785
analogous
#778517 #408517 #178525
triadic
#408517 #174085 #851740
tetradic
#408517 #177785 #5C1785 #852517
square
#408517 #177785 #5C1785 #852517
split-complementary
#408517 #251785 #851777
monochromatic
#0E1D05 #27510E #408517 #59B920 #76DD3A

Accessibility & contrast

On white

4.58
#408517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#408517 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408517
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408517#FFFFFF#000000##000000
##4085171.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#817324
Tritanopia (blue-blind)
#3C8071
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #408517;
/* rgb */ color: rgb(64, 133, 23);
/* oklch */ color: oklch(55.0% 0.155 137.0);
Tailwind
colors: {
  custom: {
    50: '#7da95f',
    500: '#408517',
    950: '#000000',
  },
}
SCSS
$custom: #408517;
$custom-light: #7da95f;
$custom-dark: #000000;
JSON
{
  "hex": "#408517",
  "rgb": {
    "r": 64,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 97.636,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55032,
    "c": 0.15529,
    "h": 137
  },
  "luminance": 0.17927
}

Semantic roles & 50–950 ramp

primary
#408517
secondary
#8B3FB9
accent
#3BEDAB
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #408517

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

Preview Lab → · Contrast checker → · Palette generator →

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