#405D15#405D15

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

Color values

HEX#405D15
RGBrgb(64, 93, 21)
HSLhsl(84, 63%, 22%)
HSVhsv(84, 77%, 36%)
CMYKcmyk(31.2%, 0%, 77.4%, 63.5%)
CIE-LABlab(35.93, -22.96, 35.76)
CIE-LCHlch(35.93, 42.50, 122.70°)
OKLaboklab(43.99% -0.0654 0.0802)
OKLCHoklch(43.99% 0.103 129.2)
XYZxyz(6.1640, 8.9727, 2.1165)
Luminance0.0897 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D15 #32155D
analogous
#5D5615 #405D15 #1C5D15
triadic
#405D15 #15405D #5D1540
tetradic
#405D15 #155D56 #32155D #5D151C
square
#405D15 #155D56 #32155D #5D151C
split-complementary
#405D15 #151C5D #56155D
monochromatic
#111906 #1E2B0A #405D15 #628F20 #85C12C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405D15#FFFFFF#000000##FFFFFF
##405D151.007.512.797.51
#FFFFFF7.511.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625608
Deuteranopia (green-blind)
#5E541C
Tritanopia (blue-blind)
#42594F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405d15;
/* rgb */ color: rgb(64, 93, 21);
/* oklch */ color: oklch(44.0% 0.103 129.2);
Tailwind
colors: {
  custom: {
    50: '#788b58',
    500: '#405d15',
    950: '#000000',
  },
}
SCSS
$custom: #405d15;
$custom-light: #788b58;
$custom-dark: #000000;
JSON
{
  "hex": "#405d15",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 21
  },
  "hsl": {
    "h": 84.167,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.43992,
    "c": 0.10346,
    "h": 129.2
  },
  "luminance": 0.08973
}

Semantic roles & 50–950 ramp

primary
#405D15
secondary
#5E3994
accent
#42E684
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C03
muted
#7B7D78

Preview Lab

Preview with #405D15

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

Preview Lab → · Contrast checker → · Palette generator →

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