#405F17#405F17

#405F17 is a dark, moderate yellow-green. Relative luminance 0.093; OKLCH L 44.6% C 0.105 H 130.1°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#405F17
RGBrgb(64, 95, 23)
HSLhsl(86, 61%, 23%)
HSVhsv(86, 76%, 37%)
CMYKcmyk(32.6%, 0%, 75.8%, 62.7%)
CIE-LABlab(36.62, -23.82, 35.63)
CIE-LCHlch(36.62, 42.86, 123.77°)
OKLaboklab(44.56% -0.0676 0.0802)
OKLCHoklch(44.56% 0.105 130.1)
XYZxyz(6.3612, 9.3361, 2.2773)
Luminance0.0934 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F17 #36175F
analogous
#5F5A17 #405F17 #1C5F17
triadic
#405F17 #17405F #5F1740
tetradic
#405F17 #175F5A #36175F #5F171C
square
#405F17 #175F5A #36175F #5F171C
split-complementary
#405F17 #171C5F #5A175F
monochromatic
#111906 #1F2E0B #405F17 #619023 #82C22F

Accessibility & contrast

On white

7.32
#405F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#405F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405F17
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F17#FFFFFF#000000##FFFFFF
##405F171.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#64580B
Deuteranopia (green-blind)
#5F551D
Tritanopia (blue-blind)
#425B51
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #405f17;
/* rgb */ color: rgb(64, 95, 23);
/* oklch */ color: oklch(44.6% 0.105 130.1);
Tailwind
colors: {
  custom: {
    50: '#788c59',
    500: '#405f17',
    950: '#000000',
  },
}
SCSS
$custom: #405f17;
$custom-light: #788c59;
$custom-dark: #000000;
JSON
{
  "hex": "#405f17",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 23
  },
  "hsl": {
    "h": 85.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.4456,
    "c": 0.10488,
    "h": 130.1
  },
  "luminance": 0.09336
}

Semantic roles & 50–950 ramp

primary
#405F17
secondary
#633C96
accent
#44E489
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405F17

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

Preview Lab → · Contrast checker → · Palette generator →

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