#405E17#405E17

#405E17 is a dark, moderate yellow-green. Relative luminance 0.092; OKLCH L 44.3% C 0.103 H 129.8°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#405E17
RGBrgb(64, 94, 23)
HSLhsl(85, 61%, 23%)
HSVhsv(85, 76%, 37%)
CMYKcmyk(31.9%, 0%, 75.5%, 63.1%)
CIE-LABlab(36.28, -23.32, 35.28)
CIE-LCHlch(36.28, 42.29, 123.46°)
OKLaboklab(44.28% -0.0662 0.0795)
OKLCHoklch(44.28% 0.103 129.8)
XYZxyz(6.2717, 9.1571, 2.2475)
Luminance0.0916 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405E17 #35175E
analogous
#5E5817 #405E17 #1C5E17
triadic
#405E17 #17405E #5E1740
tetradic
#405E17 #175E58 #35175E #5E171C
square
#405E17 #175E58 #35175E #5E171C
split-complementary
#405E17 #171C5E #58175E
monochromatic
#111906 #1F2D0B #405E17 #618F23 #83C02F

Accessibility & contrast

On white

7.42
#405E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#405E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405E17
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405E17#FFFFFF#000000##FFFFFF
##405E171.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#63570B
Deuteranopia (green-blind)
#5F551D
Tritanopia (blue-blind)
#425A50
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405e17;
/* rgb */ color: rgb(64, 94, 23);
/* oklch */ color: oklch(44.3% 0.103 129.8);
Tailwind
colors: {
  custom: {
    50: '#788c59',
    500: '#405e17',
    950: '#000000',
  },
}
SCSS
$custom: #405e17;
$custom-light: #788c59;
$custom-dark: #000000;
JSON
{
  "hex": "#405e17",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 23
  },
  "hsl": {
    "h": 85.352,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.44284,
    "c": 0.10345,
    "h": 129.8
  },
  "luminance": 0.09157
}

Semantic roles & 50–950 ramp

primary
#405E17
secondary
#623C95
accent
#44E488
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405E17

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

Preview Lab → · Contrast checker → · Palette generator →

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