#408D15#408D15

#408D15 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.2% C 0.166 H 137.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#408D15
RGBrgb(64, 141, 21)
HSLhsl(99, 74%, 32%)
HSVhsv(99, 85%, 55%)
CMYKcmyk(54.6%, 0%, 85.1%, 44.7%)
CIE-LABlab(52.05, -44.09, 50.92)
CIE-LCHlch(52.05, 67.36, 130.89°)
OKLaboklab(57.21% -0.1223 0.112)
OKLCHoklch(57.21% 0.166 137.5)
XYZxyz(11.7742, 20.1930, 3.9865)
Luminance0.2019 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D15 #62158D
analogous
#7C8D15 #408D15 #158D26
triadic
#408D15 #15408D #8D1540
tetradic
#408D15 #157C8D #62158D #8D2615
square
#408D15 #157C8D #62158D #8D2615
split-complementary
#408D15 #26158D #8D157C
monochromatic
#102205 #28580D #408D15 #58C21D #77E23B

Accessibility & contrast

On white

4.17
#408D15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#408D15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408D15
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408D15#FFFFFF#000000##000000
##408D151.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#887A25
Tritanopia (blue-blind)
#3A8878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408d15;
/* rgb */ color: rgb(64, 141, 21);
/* oklch */ color: oklch(57.2% 0.166 137.5);
Tailwind
colors: {
  custom: {
    50: '#7eaf5f',
    500: '#408d15',
    950: '#000000',
  },
}
SCSS
$custom: #408d15;
$custom-light: #7eaf5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408d15",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 98.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57211,
    "c": 0.16584,
    "h": 137.5
  },
  "luminance": 0.20194
}

Semantic roles & 50–950 ramp

primary
#408D15
secondary
#923DC1
accent
#37F1AE
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408D15

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

Preview Lab → · Contrast checker → · Palette generator →

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