#406417#406417

#406417 is a mid, moderate yellow-green. Relative luminance 0.103; OKLCH L 45.9% C 0.112 H 131.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#406417
RGBrgb(64, 100, 23)
HSLhsl(88, 63%, 24%)
HSVhsv(88, 77%, 39%)
CMYKcmyk(36%, 0%, 77%, 60.8%)
CIE-LABlab(38.32, -26.29, 37.32)
CIE-LCHlch(38.32, 45.65, 125.16°)
OKLaboklab(45.94% -0.0743 0.0838)
OKLCHoklch(45.94% 0.112 131.6)
XYZxyz(6.8261, 10.2659, 2.4323)
Luminance0.1027 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406417 #3B1764
analogous
#646217 #406417 #1A6417
triadic
#406417 #174064 #641740
tetradic
#406417 #176462 #3B1764 #64171A
square
#406417 #176462 #3B1764 #64171A
split-complementary
#406417 #171A64 #621764
monochromatic
#101906 #20320C #406417 #609622 #80C82E

Accessibility & contrast

On white

6.88
#406417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#406417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406417
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406417#FFFFFF#000000##FFFFFF
##4064171.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C09
Deuteranopia (green-blind)
#64591E
Tritanopia (blue-blind)
#416055
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #406417;
/* rgb */ color: rgb(64, 100, 23);
/* oklch */ color: oklch(45.9% 0.112 131.6);
Tailwind
colors: {
  custom: {
    50: '#78905a',
    500: '#406417',
    950: '#000000',
  },
}
SCSS
$custom: #406417;
$custom-light: #78905a;
$custom-dark: #000000;
JSON
{
  "hex": "#406417",
  "rgb": {
    "r": 64,
    "g": 100,
    "b": 23
  },
  "hsl": {
    "h": 88.052,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.45938,
    "c": 0.11196,
    "h": 131.6
  },
  "luminance": 0.10266
}

Semantic roles & 50–950 ramp

primary
#406417
secondary
#683C9A
accent
#42E68F
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #406417

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

Preview Lab → · Contrast checker → · Palette generator →

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