#405A16#405A16

#405A16 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.2% C 0.098 H 128.2°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#405A16
RGBrgb(64, 90, 22)
HSLhsl(83, 61%, 22%)
HSVhsv(83, 76%, 35%)
CMYKcmyk(28.9%, 0%, 75.6%, 64.7%)
CIE-LABlab(34.92, -21.35, 34.33)
CIE-LCHlch(34.92, 40.43, 121.88°)
OKLaboklab(43.18% -0.0609 0.0773)
OKLCHoklch(43.18% 0.098 128.2)
XYZxyz(5.9153, 8.4601, 2.0802)
Luminance0.0846 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A16 #30165A
analogous
#5A5216 #405A16 #1E5A16
triadic
#405A16 #16405A #5A1640
tetradic
#405A16 #165A52 #30165A #5A161E
square
#405A16 #165A52 #30165A #5A161E
split-complementary
#405A16 #161E5A #52165A
monochromatic
#111906 #1D290A #405A16 #638B22 #86BC2E

Accessibility & contrast

On white

7.80
#405A16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #405A16
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A16#FFFFFF#000000##FFFFFF
##405A161.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F530B
Deuteranopia (green-blind)
#5B521C
Tritanopia (blue-blind)
#42564D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405a16;
/* rgb */ color: rgb(64, 90, 22);
/* oklch */ color: oklch(43.2% 0.098 128.2);
Tailwind
colors: {
  custom: {
    50: '#778858',
    500: '#405a16',
    950: '#000000',
  },
}
SCSS
$custom: #405a16;
$custom-light: #778858;
$custom-dark: #000000;
JSON
{
  "hex": "#405a16",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 22
  },
  "hsl": {
    "h": 82.941,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43175,
    "c": 0.09845,
    "h": 128.2
  },
  "luminance": 0.0846
}

Semantic roles & 50–950 ramp

primary
#405A16
secondary
#5C3B91
accent
#44E481
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405A16

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

Preview Lab → · Contrast checker → · Palette generator →

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