#405D11#405D11

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

Color values

HEX#405D11
RGBrgb(64, 93, 17)
HSLhsl(83, 69%, 22%)
HSVhsv(83, 82%, 36%)
CMYKcmyk(31.2%, 0%, 81.7%, 63.5%)
CIE-LABlab(35.91, -23.22, 37.29)
CIE-LCHlch(35.91, 43.92, 121.91°)
OKLaboklab(43.96% -0.0665 0.0827)
OKLCHoklch(43.96% 0.106 128.8)
XYZxyz(6.1299, 8.9590, 1.9365)
Luminance0.0896 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D11 #2E115D
analogous
#5D5411 #405D11 #1A5D11
triadic
#405D11 #11405D #5D1140
tetradic
#405D11 #115D54 #2E115D #5D111A
square
#405D11 #115D54 #2E115D #5D111A
split-complementary
#405D11 #111A5D #54115D
monochromatic
#121A05 #1C2908 #405D11 #64911A #87C424

Accessibility & contrast

On white

7.52
#405D11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#405D11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405D11
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D11#FFFFFF#000000##FFFFFF
##405D111.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625601
Deuteranopia (green-blind)
#5E5419
Tritanopia (blue-blind)
#42584F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405d11;
/* rgb */ color: rgb(64, 93, 17);
/* oklch */ color: oklch(44.0% 0.106 128.8);
Tailwind
colors: {
  custom: {
    50: '#788b56',
    500: '#405d11',
    950: '#000000',
  },
}
SCSS
$custom: #405d11;
$custom-light: #788b56;
$custom-dark: #000000;
JSON
{
  "hex": "#405d11",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 17
  },
  "hsl": {
    "h": 82.895,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.43962,
    "c": 0.10606,
    "h": 128.8
  },
  "luminance": 0.08959
}

Semantic roles & 50–950 ramp

primary
#405D11
secondary
#593496
accent
#3CEC7F
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C03
muted
#7B7D78

Preview Lab

Preview with #405D11

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

Preview Lab → · Contrast checker → · Palette generator →

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