#405A17#405A17

#405A17 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.2% C 0.098 H 128.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#405A17
RGBrgb(64, 90, 23)
HSLhsl(83, 59%, 22%)
HSVhsv(83, 74%, 35%)
CMYKcmyk(28.9%, 0%, 74.4%, 64.7%)
CIE-LABlab(34.93, -21.28, 33.91)
CIE-LCHlch(34.93, 40.03, 122.11°)
OKLaboklab(43.18% -0.0606 0.0766)
OKLCHoklch(43.18% 0.098 128.4)
XYZxyz(5.9252, 8.4640, 2.1320)
Luminance0.0846 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A17 #31175A
analogous
#5A5317 #405A17 #1E5A17
triadic
#405A17 #17405A #5A1740
tetradic
#405A17 #175A53 #31175A #5A171E
square
#405A17 #175A53 #31175A #5A171E
split-complementary
#405A17 #171E5A #53175A
monochromatic
#111806 #1D290B #405A17 #638B23 #85BB30

Accessibility & contrast

On white

7.80
#405A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#405A17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405A17
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A17#FFFFFF#000000##FFFFFF
##405A171.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F530D
Deuteranopia (green-blind)
#5B521D
Tritanopia (blue-blind)
#42564D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405a17;
/* rgb */ color: rgb(64, 90, 23);
/* oklch */ color: oklch(43.2% 0.098 128.4);
Tailwind
colors: {
  custom: {
    50: '#778859',
    500: '#405a17',
    950: '#000000',
  },
}
SCSS
$custom: #405a17;
$custom-light: #778859;
$custom-dark: #000000;
JSON
{
  "hex": "#405a17",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 23
  },
  "hsl": {
    "h": 83.284,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43184,
    "c": 0.0977,
    "h": 128.4
  },
  "luminance": 0.08464
}

Semantic roles & 50–950 ramp

primary
#405A17
secondary
#5D3C91
accent
#45E282
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405A17

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

Preview Lab → · Contrast checker → · Palette generator →

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