#406517#406517

#406517 is a mid, moderate yellow-green. Relative luminance 0.105; OKLCH L 46.2% C 0.113 H 131.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#406517
RGBrgb(64, 101, 23)
HSLhsl(88, 63%, 24%)
HSVhsv(88, 77%, 40%)
CMYKcmyk(36.6%, 0%, 77.2%, 60.4%)
CIE-LABlab(38.65, -26.77, 37.66)
CIE-LCHlch(38.65, 46.20, 125.41°)
OKLaboklab(46.21% -0.0756 0.0845)
OKLCHoklch(46.21% 0.113 131.8)
XYZxyz(6.9226, 10.4589, 2.4645)
Luminance0.1046 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406517 #3C1765
analogous
#656317 #406517 #196517
triadic
#406517 #174065 #651740
tetradic
#406517 #176563 #3C1765 #651719
square
#406517 #176563 #3C1765 #651719
split-complementary
#406517 #171965 #631765
monochromatic
#101906 #20330C #406517 #609722 #7FC92E

Accessibility & contrast

On white

6.79
#406517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#406517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406517
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406517#FFFFFF#000000##FFFFFF
##4065171.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D08
Deuteranopia (green-blind)
#655A1E
Tritanopia (blue-blind)
#416156
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #406517;
/* rgb */ color: rgb(64, 101, 23);
/* oklch */ color: oklch(46.2% 0.113 131.8);
Tailwind
colors: {
  custom: {
    50: '#78915a',
    500: '#406517',
    950: '#000000',
  },
}
SCSS
$custom: #406517;
$custom-light: #78915a;
$custom-dark: #000000;
JSON
{
  "hex": "#406517",
  "rgb": {
    "r": 64,
    "g": 101,
    "b": 23
  },
  "hsl": {
    "h": 88.462,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.46214,
    "c": 0.11335,
    "h": 131.8
  },
  "luminance": 0.10459
}

Semantic roles & 50–950 ramp

primary
#406517
secondary
#693C9B
accent
#42E690
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #406517

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

Preview Lab → · Contrast checker → · Palette generator →

#406517 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva