#405D16#405D16

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

Color values

HEX#405D16
RGBrgb(64, 93, 22)
HSLhsl(85, 62%, 23%)
HSVhsv(85, 76%, 36%)
CMYKcmyk(31.2%, 0%, 76.3%, 63.5%)
CIE-LABlab(35.94, -22.89, 35.36)
CIE-LCHlch(35.94, 42.12, 122.92°)
OKLaboklab(44% -0.0651 0.0795)
OKLCHoklch(44% 0.103 129.3)
XYZxyz(6.1735, 8.9764, 2.1663)
Luminance0.0898 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D16 #33165D
analogous
#5D5616 #405D16 #1D5D16
triadic
#405D16 #16405D #5D1640
tetradic
#405D16 #165D56 #33165D #5D161D
square
#405D16 #165D56 #33165D #5D161D
split-complementary
#405D16 #161D5D #56165D
monochromatic
#111906 #1E2C0A #405D16 #628E22 #84C02D

Accessibility & contrast

On white

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

On black

2.80
#405D16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##405D16#FFFFFF#000000##FFFFFF
##405D161.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62560A
Deuteranopia (green-blind)
#5E541C
Tritanopia (blue-blind)
#42594F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405d16;
/* rgb */ color: rgb(64, 93, 22);
/* oklch */ color: oklch(44.0% 0.103 129.3);
Tailwind
colors: {
  custom: {
    50: '#788b58',
    500: '#405d16',
    950: '#000000',
  },
}
SCSS
$custom: #405d16;
$custom-light: #788b58;
$custom-dark: #000000;
JSON
{
  "hex": "#405d16",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 22
  },
  "hsl": {
    "h": 84.507,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.44,
    "c": 0.10276,
    "h": 129.3
  },
  "luminance": 0.08977
}

Semantic roles & 50–950 ramp

primary
#405D16
secondary
#5F3B94
accent
#43E585
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405D16

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

Preview Lab → · Contrast checker → · Palette generator →

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