#406A15#406A15

#406A15 is a mid, vivid yellow-green. Relative luminance 0.115; OKLCH L 47.6% C 0.121 H 132.8°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#406A15
RGBrgb(64, 106, 21)
HSLhsl(90, 67%, 25%)
HSVhsv(90, 80%, 42%)
CMYKcmyk(39.6%, 0%, 80.2%, 58.4%)
CIE-LABlab(40.33, -29.27, 40.05)
CIE-LCHlch(40.33, 49.61, 126.16°)
OKLaboklab(47.58% -0.0825 0.0891)
OKLCHoklch(47.58% 0.121 132.8)
XYZxyz(7.4036, 11.4519, 2.5297)
Luminance0.1145 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406A15 #3F156A
analogous
#6A6915 #406A15 #166A15
triadic
#406A15 #15406A #6A1540
tetradic
#406A15 #156A69 #3F156A #6A1516
square
#406A15 #156A69 #3F156A #6A1516
split-complementary
#406A15 #15166A #69156A
monochromatic
#0F1A05 #21370B #406A15 #5F9D1F #7ED029

Accessibility & contrast

On white

6.38
#406A15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#406A15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406A15
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406A15#FFFFFF#000000##FFFFFF
##406A151.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6102
Deuteranopia (green-blind)
#695E1E
Tritanopia (blue-blind)
#40655A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #406a15;
/* rgb */ color: rgb(64, 106, 21);
/* oklch */ color: oklch(47.6% 0.121 132.8);
Tailwind
colors: {
  custom: {
    50: '#79955a',
    500: '#406a15',
    950: '#000000',
  },
}
SCSS
$custom: #406a15;
$custom-light: #79955a;
$custom-dark: #000000;
JSON
{
  "hex": "#406a15",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 21
  },
  "hsl": {
    "h": 89.647,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.4758,
    "c": 0.12149,
    "h": 132.8
  },
  "luminance": 0.11452
}

Semantic roles & 50–950 ramp

primary
#406A15
secondary
#6D3AA1
accent
#3EEA93
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406A15

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

Preview Lab → · Contrast checker → · Palette generator →

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