#408915#408915

#408915 is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.1% C 0.161 H 137.2°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#408915
RGBrgb(64, 137, 21)
HSLhsl(98, 73%, 31%)
HSVhsv(98, 85%, 54%)
CMYKcmyk(53.3%, 0%, 84.7%, 46.3%)
CIE-LABlab(50.73, -42.53, 49.73)
CIE-LCHlch(50.73, 65.43, 130.54°)
OKLaboklab(56.12% -0.1181 0.1095)
OKLCHoklch(56.12% 0.161 137.2)
XYZxyz(11.1950, 19.0346, 3.7934)
Luminance0.1903 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408915 #5E1589
analogous
#7A8915 #408915 #158924
triadic
#408915 #154089 #891540
tetradic
#408915 #157A89 #5E1589 #892415
square
#408915 #157A89 #5E1589 #892415
split-complementary
#408915 #241589 #89157A
monochromatic
#0E1F05 #27540D #408915 #59BE1D #76E038

Accessibility & contrast

On white

4.37
#408915 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#408915 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408915
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408915#FFFFFF#000000##000000
##4089151.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7C00
Deuteranopia (green-blind)
#847724
Tritanopia (blue-blind)
#3B8474
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #408915;
/* rgb */ color: rgb(64, 137, 21);
/* oklch */ color: oklch(56.1% 0.161 137.2);
Tailwind
colors: {
  custom: {
    50: '#7dac5f',
    500: '#408915',
    950: '#000000',
  },
}
SCSS
$custom: #408915;
$custom-light: #7dac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408915",
  "rgb": {
    "r": 64,
    "g": 137,
    "b": 21
  },
  "hsl": {
    "h": 97.759,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56117,
    "c": 0.16106,
    "h": 137.2
  },
  "luminance": 0.19035
}

Semantic roles & 50–950 ramp

primary
#408915
secondary
#8E3DBD
accent
#38F0AC
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408915

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

Preview Lab → · Contrast checker → · Palette generator →

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