#405D17#405D17

#405D17 is a dark, moderate yellow-green. Relative luminance 0.090; OKLCH L 44.0% C 0.102 H 129.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#405D17
RGBrgb(64, 93, 23)
HSLhsl(85, 60%, 23%)
HSVhsv(85, 75%, 36%)
CMYKcmyk(31.2%, 0%, 75.3%, 63.5%)
CIE-LABlab(35.95, -22.81, 34.94)
CIE-LCHlch(35.95, 41.73, 123.14°)
OKLaboklab(44.01% -0.0648 0.0788)
OKLCHoklch(44.01% 0.102 129.5)
XYZxyz(6.1833, 8.9804, 2.2181)
Luminance0.0898 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D17 #34175D
analogous
#5D5717 #405D17 #1D5D17
triadic
#405D17 #17405D #5D1740
tetradic
#405D17 #175D57 #34175D #5D171D
square
#405D17 #175D57 #34175D #5D171D
split-complementary
#405D17 #171D5D #57175D
monochromatic
#111906 #1E2C0B #405D17 #628E23 #84BF2F

Accessibility & contrast

On white

7.51
#405D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#405D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405D17
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D17#FFFFFF#000000##FFFFFF
##405D171.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62560C
Deuteranopia (green-blind)
#5E541D
Tritanopia (blue-blind)
#42594F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405d17;
/* rgb */ color: rgb(64, 93, 23);
/* oklch */ color: oklch(44.0% 0.102 129.5);
Tailwind
colors: {
  custom: {
    50: '#788b59',
    500: '#405d17',
    950: '#000000',
  },
}
SCSS
$custom: #405d17;
$custom-light: #788b59;
$custom-dark: #000000;
JSON
{
  "hex": "#405d17",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 23
  },
  "hsl": {
    "h": 84.857,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44009,
    "c": 0.10203,
    "h": 129.5
  },
  "luminance": 0.08981
}

Semantic roles & 50–950 ramp

primary
#405D17
secondary
#603C94
accent
#44E386
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405D17

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

Preview Lab → · Contrast checker → · Palette generator →

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