#406D15#406D15

#406D15 is a mid, vivid yellow-green. Relative luminance 0.121; OKLCH L 48.4% C 0.126 H 133.4°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#406D15
RGBrgb(64, 109, 21)
HSLhsl(91, 68%, 25%)
HSVhsv(91, 81%, 43%)
CMYKcmyk(41.3%, 0%, 80.7%, 57.3%)
CIE-LABlab(41.34, -30.66, 41.02)
CIE-LCHlch(41.34, 51.21, 126.77°)
OKLaboklab(48.41% -0.0863 0.0912)
OKLCHoklch(48.41% 0.126 133.4)
XYZxyz(7.7182, 12.0810, 2.6345)
Luminance0.1208 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406D15 #42156D
analogous
#6C6D15 #406D15 #156D16
triadic
#406D15 #15406D #6D1540
tetradic
#406D15 #156C6D #42156D #6D1615
square
#406D15 #156C6D #42156D #6D1615
split-complementary
#406D15 #16156D #6D156C
monochromatic
#0F1A05 #223A0B #406D15 #5EA01F #7CD429

Accessibility & contrast

On white

6.15
#406D15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#406D15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406D15
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406D15#FFFFFF#000000##FFFFFF
##406D151.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726401
Deuteranopia (green-blind)
#6C601E
Tritanopia (blue-blind)
#40685D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #406d15;
/* rgb */ color: rgb(64, 109, 21);
/* oklch */ color: oklch(48.4% 0.126 133.4);
Tailwind
colors: {
  custom: {
    50: '#79975a',
    500: '#406d15',
    950: '#000000',
  },
}
SCSS
$custom: #406d15;
$custom-light: #79975a;
$custom-dark: #000000;
JSON
{
  "hex": "#406d15",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 21
  },
  "hsl": {
    "h": 90.682,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.48409,
    "c": 0.12552,
    "h": 133.4
  },
  "luminance": 0.12081
}

Semantic roles & 50–950 ramp

primary
#406D15
secondary
#703AA3
accent
#3DEB96
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406D15

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

Preview Lab → · Contrast checker → · Palette generator →

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