#406217#406217

#406217 is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.4% C 0.109 H 131.0°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#406217
RGBrgb(64, 98, 23)
HSLhsl(87, 62%, 24%)
HSVhsv(87, 77%, 38%)
CMYKcmyk(34.7%, 0%, 76.5%, 61.6%)
CIE-LABlab(37.64, -25.31, 36.65)
CIE-LCHlch(37.64, 44.54, 124.63°)
OKLaboklab(45.39% -0.0716 0.0824)
OKLCHoklch(45.39% 0.109 131)
XYZxyz(6.6366, 9.8870, 2.3692)
Luminance0.0989 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406217 #391762
analogous
#625E17 #406217 #1A6217
triadic
#406217 #174062 #621740
tetradic
#406217 #17625E #391762 #62171A
square
#406217 #17625E #391762 #62171A
split-complementary
#406217 #171A62 #5E1762
monochromatic
#101906 #20300B #406217 #609423 #81C52E

Accessibility & contrast

On white

7.05
#406217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#406217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #406217
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406217#FFFFFF#000000##FFFFFF
##4062171.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A0A
Deuteranopia (green-blind)
#62581E
Tritanopia (blue-blind)
#415E53
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #406217;
/* rgb */ color: rgb(64, 98, 23);
/* oklch */ color: oklch(45.4% 0.109 131.0);
Tailwind
colors: {
  custom: {
    50: '#788f5a',
    500: '#406217',
    950: '#000000',
  },
}
SCSS
$custom: #406217;
$custom-light: #788f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#406217",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 87.2,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.45387,
    "c": 0.10915,
    "h": 131
  },
  "luminance": 0.09887
}

Semantic roles & 50–950 ramp

primary
#406217
secondary
#663C99
accent
#43E58C
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #406217

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

Preview Lab → · Contrast checker → · Palette generator →

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