#405217#405217

#405217 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 41.0% C 0.086 H 124.7°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#405217
RGBrgb(64, 82, 23)
HSLhsl(78, 56%, 21%)
HSVhsv(78, 72%, 32%)
CMYKcmyk(22%, 0%, 72%, 67.8%)
CIE-LABlab(32.23, -17.02, 31.10)
CIE-LCHlch(32.23, 35.45, 118.69°)
OKLaboklab(40.99% -0.0489 0.0707)
OKLCHoklch(40.99% 0.086 124.7)
XYZxyz(5.2863, 7.1864, 1.9191)
Luminance0.0719 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405217 #291752
analogous
#524617 #405217 #225217
triadic
#405217 #174052 #521740
tetradic
#405217 #175246 #291752 #521722
square
#405217 #175246 #291752 #521722
split-complementary
#405217 #172252 #461752
monochromatic
#131807 #1B220A #405217 #658224 #8BB232

Accessibility & contrast

On white

8.62
#405217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#405217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405217
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405217#FFFFFF#000000##FFFFFF
##4052171.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C0F
Deuteranopia (green-blind)
#544C1C
Tritanopia (blue-blind)
#434E46
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #405217;
/* rgb */ color: rgb(64, 82, 23);
/* oklch */ color: oklch(41.0% 0.086 124.7);
Tailwind
colors: {
  custom: {
    50: '#778258',
    500: '#405217',
    950: '#000000',
  },
}
SCSS
$custom: #405217;
$custom-light: #778258;
$custom-dark: #000000;
JSON
{
  "hex": "#405217",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 78.305,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40994,
    "c": 0.086,
    "h": 124.7
  },
  "luminance": 0.07186
}

Semantic roles & 50–950 ramp

primary
#405217
secondary
#533C89
accent
#48DF76
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405217

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

Preview Lab → · Contrast checker → · Palette generator →

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