#408C15#408C15

#408C15 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 56.9% C 0.165 H 137.5°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#408C15
RGBrgb(64, 140, 21)
HSLhsl(98, 74%, 32%)
HSVhsv(98, 85%, 55%)
CMYKcmyk(54.3%, 0%, 85%, 45.1%)
CIE-LABlab(51.72, -43.70, 50.63)
CIE-LCHlch(51.72, 66.88, 130.80°)
OKLaboklab(56.94% -0.1213 0.1113)
OKLCHoklch(56.94% 0.165 137.5)
XYZxyz(11.6274, 19.8994, 3.9376)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408C15 #61158C
analogous
#7C8C15 #408C15 #158C25
triadic
#408C15 #15408C #8C1540
tetradic
#408C15 #157C8C #61158C #8C2515
square
#408C15 #157C8C #61158C #8C2515
split-complementary
#408C15 #25158C #8C157C
monochromatic
#0F2205 #28570D #408C15 #58C11D #76E13A

Accessibility & contrast

On white

4.22
#408C15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#408C15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408C15
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408C15#FFFFFF#000000##000000
##408C151.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#877924
Tritanopia (blue-blind)
#3A8777
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #408c15;
/* rgb */ color: rgb(64, 140, 21);
/* oklch */ color: oklch(56.9% 0.165 137.5);
Tailwind
colors: {
  custom: {
    50: '#7eae5f',
    500: '#408c15',
    950: '#000000',
  },
}
SCSS
$custom: #408c15;
$custom-light: #7eae5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408c15",
  "rgb": {
    "r": 64,
    "g": 140,
    "b": 21
  },
  "hsl": {
    "h": 98.319,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56938,
    "c": 0.16465,
    "h": 137.5
  },
  "luminance": 0.199
}

Semantic roles & 50–950 ramp

primary
#408C15
secondary
#913DC0
accent
#37F1AE
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408C15

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

Preview Lab → · Contrast checker → · Palette generator →

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