#408E15#408E15

#408E15 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.5% C 0.167 H 137.6°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#408E15
RGBrgb(64, 142, 21)
HSLhsl(99, 74%, 32%)
HSVhsv(99, 85%, 56%)
CMYKcmyk(54.9%, 0%, 85.2%, 44.3%)
CIE-LABlab(52.39, -44.48, 51.22)
CIE-LCHlch(52.39, 67.84, 130.97°)
OKLaboklab(57.48% -0.1234 0.1126)
OKLCHoklch(57.48% 0.167 137.6)
XYZxyz(11.9223, 20.4892, 4.0359)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408E15 #63158E
analogous
#7D8E15 #408E15 #158E27
triadic
#408E15 #15408E #8E1540
tetradic
#408E15 #157D8E #63158E #8E2715
square
#408E15 #157D8E #63158E #8E2715
split-complementary
#408E15 #27158E #8E157D
monochromatic
#102305 #28590D #408E15 #58C31D #77E23B

Accessibility & contrast

On white

4.12
#408E15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#408E15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408E15
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408E15#FFFFFF#000000##000000
##408E151.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#897B25
Tritanopia (blue-blind)
#3A8979
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #408e15;
/* rgb */ color: rgb(64, 142, 21);
/* oklch */ color: oklch(57.5% 0.167 137.6);
Tailwind
colors: {
  custom: {
    50: '#7eb05f',
    500: '#408e15',
    950: '#000000',
  },
}
SCSS
$custom: #408e15;
$custom-light: #7eb05f;
$custom-dark: #000000;
JSON
{
  "hex": "#408e15",
  "rgb": {
    "r": 64,
    "g": 142,
    "b": 21
  },
  "hsl": {
    "h": 98.678,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57484,
    "c": 0.16704,
    "h": 137.6
  },
  "luminance": 0.2049
}

Semantic roles & 50–950 ramp

primary
#408E15
secondary
#933DC2
accent
#37F1AF
background
#F8FAF5
surface
#EFF5EA
border
#CACFC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408E15

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

Preview Lab → · Contrast checker → · Palette generator →

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