#405B17#405B17

#405B17 is a dark, moderate yellow-green. Relative luminance 0.086; OKLCH L 43.5% C 0.099 H 128.7°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#405B17
RGBrgb(64, 91, 23)
HSLhsl(84, 60%, 22%)
HSVhsv(84, 75%, 36%)
CMYKcmyk(29.7%, 0%, 74.7%, 64.3%)
CIE-LABlab(35.27, -21.79, 34.25)
CIE-LCHlch(35.27, 40.60, 122.47°)
OKLaboklab(43.46% -0.062 0.0773)
OKLCHoklch(43.46% 0.099 128.7)
XYZxyz(6.0101, 8.6339, 2.1603)
Luminance0.0863 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B17 #32175B
analogous
#5B5417 #405B17 #1E5B17
triadic
#405B17 #17405B #5B1740
tetradic
#405B17 #175B54 #32175B #5B171E
square
#405B17 #175B54 #32175B #5B171E
split-complementary
#405B17 #171E5B #54175B
monochromatic
#111806 #1E2A0B #405B17 #628C23 #85BD30

Accessibility & contrast

On white

7.70
#405B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#405B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405B17
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B17#FFFFFF#000000##FFFFFF
##405B171.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60540C
Deuteranopia (green-blind)
#5C521D
Tritanopia (blue-blind)
#42574D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405b17;
/* rgb */ color: rgb(64, 91, 23);
/* oklch */ color: oklch(43.5% 0.099 128.7);
Tailwind
colors: {
  custom: {
    50: '#778959',
    500: '#405b17',
    950: '#000000',
  },
}
SCSS
$custom: #405b17;
$custom-light: #778959;
$custom-dark: #000000;
JSON
{
  "hex": "#405b17",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 23
  },
  "hsl": {
    "h": 83.824,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.43459,
    "c": 0.09914,
    "h": 128.7
  },
  "luminance": 0.08634
}

Semantic roles & 50–950 ramp

primary
#405B17
secondary
#5E3C92
accent
#45E384
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405B17

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

Preview Lab → · Contrast checker → · Palette generator →

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