#408F15#408F15

#408F15 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 57.8% C 0.168 H 137.7°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#408F15
RGBrgb(64, 143, 21)
HSLhsl(99, 74%, 32%)
HSVhsv(99, 85%, 56%)
CMYKcmyk(55.2%, 0%, 85.3%, 43.9%)
CIE-LABlab(52.72, -44.86, 51.52)
CIE-LCHlch(52.72, 68.31, 131.05°)
OKLaboklab(57.76% -0.1244 0.1132)
OKLCHoklch(57.76% 0.168 137.7)
XYZxyz(12.0718, 20.7881, 4.0857)
Luminance0.2079 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408F15 #64158F
analogous
#7D8F15 #408F15 #158F27
triadic
#408F15 #15408F #8F1540
tetradic
#408F15 #157D8F #64158F #8F2715
square
#408F15 #157D8F #64158F #8F2715
split-complementary
#408F15 #27158F #8F157D
monochromatic
#102405 #285A0D #408F15 #58C41D #77E23C

Accessibility & contrast

On white

4.07
#408F15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#408F15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408F15
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408F15#FFFFFF#000000##000000
##408F151.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8A7B25
Tritanopia (blue-blind)
#3A8A79
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #408f15;
/* rgb */ color: rgb(64, 143, 21);
/* oklch */ color: oklch(57.8% 0.168 137.7);
Tailwind
colors: {
  custom: {
    50: '#7eb060',
    500: '#408f15',
    950: '#000000',
  },
}
SCSS
$custom: #408f15;
$custom-light: #7eb060;
$custom-dark: #000000;
JSON
{
  "hex": "#408f15",
  "rgb": {
    "r": 64,
    "g": 143,
    "b": 21
  },
  "hsl": {
    "h": 98.852,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57757,
    "c": 0.16822,
    "h": 137.7
  },
  "luminance": 0.20789
}

Semantic roles & 50–950 ramp

primary
#408F15
secondary
#933EC2
accent
#37F1AF
background
#F8FAF5
surface
#EFF5EA
border
#CACFC6
text
#0B1105
muted
#7C8079

Preview Lab

Preview with #408F15

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

Preview Lab → · Contrast checker → · Palette generator →

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