#408A15#408A15

#408A15 is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.4% C 0.162 H 137.3°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#408A15
RGBrgb(64, 138, 21)
HSLhsl(98, 74%, 31%)
HSVhsv(98, 85%, 54%)
CMYKcmyk(53.6%, 0%, 84.8%, 45.9%)
CIE-LABlab(51.06, -42.92, 50.03)
CIE-LCHlch(51.06, 65.92, 130.63°)
OKLaboklab(56.39% -0.1192 0.1101)
OKLCHoklch(56.39% 0.162 137.3)
XYZxyz(11.3378, 19.3202, 3.8410)
Luminance0.1932 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408A15 #5F158A
analogous
#7A8A15 #408A15 #158A24
triadic
#408A15 #15408A #8A1540
tetradic
#408A15 #157A8A #5F158A #8A2415
square
#408A15 #157A8A #5F158A #8A2415
split-complementary
#408A15 #24158A #8A157A
monochromatic
#0F2005 #27550D #408A15 #59BF1D #76E139

Accessibility & contrast

On white

4.32
#408A15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#408A15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408A15
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408A15#FFFFFF#000000##000000
##408A151.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#857724
Tritanopia (blue-blind)
#3B8575
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #408a15;
/* rgb */ color: rgb(64, 138, 21);
/* oklch */ color: oklch(56.4% 0.162 137.3);
Tailwind
colors: {
  custom: {
    50: '#7dad5f',
    500: '#408a15',
    950: '#000000',
  },
}
SCSS
$custom: #408a15;
$custom-light: #7dad5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408a15",
  "rgb": {
    "r": 64,
    "g": 138,
    "b": 21
  },
  "hsl": {
    "h": 97.949,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56391,
    "c": 0.16226,
    "h": 137.3
  },
  "luminance": 0.19321
}

Semantic roles & 50–950 ramp

primary
#408A15
secondary
#8F3DBE
accent
#38F0AC
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408A15

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

Preview Lab → · Contrast checker → · Palette generator →

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