#406B17#406B17

#406B17 is a mid, vivid yellow-green. Relative luminance 0.117; OKLCH L 47.9% C 0.122 H 133.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#406B17
RGBrgb(64, 107, 23)
HSLhsl(91, 65%, 25%)
HSVhsv(91, 79%, 42%)
CMYKcmyk(40.2%, 0%, 78.5%, 58%)
CIE-LABlab(40.68, -29.61, 39.65)
CIE-LCHlch(40.68, 49.49, 126.75°)
OKLaboklab(47.87% -0.0833 0.0886)
OKLCHoklch(47.87% 0.122 133.2)
XYZxyz(7.5266, 11.6669, 2.6658)
Luminance0.1167 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406B17 #42176B
analogous
#6A6B17 #406B17 #176B18
triadic
#406B17 #17406B #6B1740
tetradic
#406B17 #176A6B #42176B #6B1817
square
#406B17 #176A6B #42176B #6B1817
split-complementary
#406B17 #18176B #6B176A
monochromatic
#0F1905 #22390C #406B17 #5E9D22 #7CD02D

Accessibility & contrast

On white

6.30
#406B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#406B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406B17
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406B17#FFFFFF#000000##FFFFFF
##406B171.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706206
Deuteranopia (green-blind)
#6A5F1F
Tritanopia (blue-blind)
#40665B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #406b17;
/* rgb */ color: rgb(64, 107, 23);
/* oklch */ color: oklch(47.9% 0.122 133.2);
Tailwind
colors: {
  custom: {
    50: '#79955b',
    500: '#406b17',
    950: '#000000',
  },
}
SCSS
$custom: #406b17;
$custom-light: #79955b;
$custom-dark: #000000;
JSON
{
  "hex": "#406b17",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 23
  },
  "hsl": {
    "h": 90.714,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.4787,
    "c": 0.12163,
    "h": 133.2
  },
  "luminance": 0.11667
}

Semantic roles & 50–950 ramp

primary
#406B17
secondary
#703DA1
accent
#40E896
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406B17

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

Preview Lab → · Contrast checker → · Palette generator →

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