#406D17#406D17

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

Color values

HEX#406D17
RGBrgb(64, 109, 23)
HSLhsl(91, 65%, 26%)
HSVhsv(91, 79%, 43%)
CMYKcmyk(41.3%, 0%, 78.9%, 57.3%)
CIE-LABlab(41.36, -30.53, 40.31)
CIE-LCHlch(41.36, 50.57, 127.14°)
OKLaboklab(48.42% -0.0858 0.09)
OKLCHoklch(48.42% 0.124 133.6)
XYZxyz(7.7375, 12.0888, 2.7361)
Luminance0.1209 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406D17 #44176D
analogous
#6B6D17 #406D17 #176D19
triadic
#406D17 #17406D #6D1740
tetradic
#406D17 #176B6D #44176D #6D1917
square
#406D17 #176B6D #44176D #6D1917
split-complementary
#406D17 #19176D #6D176B
monochromatic
#0F1905 #223A0C #406D17 #5EA022 #7BD22C

Accessibility & contrast

On white

6.14
#406D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #406D17
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406D17#FFFFFF#000000##FFFFFF
##406D171.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726405
Deuteranopia (green-blind)
#6C6020
Tritanopia (blue-blind)
#40685D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #406d17;
/* rgb */ color: rgb(64, 109, 23);
/* oklch */ color: oklch(48.4% 0.124 133.6);
Tailwind
colors: {
  custom: {
    50: '#79975b',
    500: '#406d17',
    950: '#000000',
  },
}
SCSS
$custom: #406d17;
$custom-light: #79975b;
$custom-dark: #000000;
JSON
{
  "hex": "#406d17",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 23
  },
  "hsl": {
    "h": 91.395,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48423,
    "c": 0.12435,
    "h": 133.6
  },
  "luminance": 0.12089
}

Semantic roles & 50–950 ramp

primary
#406D17
secondary
#723DA3
accent
#40E898
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406D17

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

Preview Lab → · Contrast checker → · Palette generator →

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