#405A11#405A11

#405A11 is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 43.1% C 0.102 H 127.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#405A11
RGBrgb(64, 90, 17)
HSLhsl(81, 68%, 21%)
HSVhsv(81, 81%, 35%)
CMYKcmyk(28.9%, 0%, 81.1%, 64.7%)
CIE-LABlab(34.89, -21.69, 36.32)
CIE-LCHlch(34.89, 42.30, 120.85°)
OKLaboklab(43.14% -0.0623 0.0806)
OKLCHoklch(43.14% 0.102 127.7)
XYZxyz(5.8717, 8.4427, 1.8504)
Luminance0.0844 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A11 #2B115A
analogous
#5A4F11 #405A11 #1B5A11
triadic
#405A11 #11405A #5A1140
tetradic
#405A11 #115A4F #2B115A #5A111B
square
#405A11 #115A4F #2B115A #5A111B
split-complementary
#405A11 #111B5A #4F115A
monochromatic
#121A05 #1B2707 #405A11 #658D1B #89C124

Accessibility & contrast

On white

7.81
#405A11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #405A11
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A11#FFFFFF#000000##FFFFFF
##405A111.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5303
Deuteranopia (green-blind)
#5B5218
Tritanopia (blue-blind)
#43564C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405a11;
/* rgb */ color: rgb(64, 90, 17);
/* oklch */ color: oklch(43.1% 0.102 127.7);
Tailwind
colors: {
  custom: {
    50: '#788855',
    500: '#405a11',
    950: '#000000',
  },
}
SCSS
$custom: #405a11;
$custom-light: #788855;
$custom-dark: #000000;
JSON
{
  "hex": "#405a11",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 17
  },
  "hsl": {
    "h": 81.37,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.43136,
    "c": 0.10189,
    "h": 127.7
  },
  "luminance": 0.08443
}

Semantic roles & 50–950 ramp

primary
#405A11
secondary
#563493
accent
#3DEB7B
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405A11

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

Preview Lab → · Contrast checker → · Palette generator →

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