#405216#405216

#405216 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 41.0% C 0.087 H 124.6°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#405216
RGBrgb(64, 82, 22)
HSLhsl(78, 58%, 20%)
HSVhsv(78, 73%, 32%)
CMYKcmyk(22%, 0%, 73.2%, 67.8%)
CIE-LABlab(32.22, -17.10, 31.56)
CIE-LCHlch(32.22, 35.90, 118.45°)
OKLaboklab(40.98% -0.0493 0.0715)
OKLCHoklch(40.98% 0.087 124.6)
XYZxyz(5.2765, 7.1825, 1.8673)
Luminance0.0718 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405216 #281652
analogous
#524616 #405216 #225216
triadic
#405216 #164052 #521640
tetradic
#405216 #165246 #281652 #521622
square
#405216 #165246 #281652 #521622
split-complementary
#405216 #162252 #461652
monochromatic
#131806 #1A2209 #405216 #668223 #8BB330

Accessibility & contrast

On white

8.62
#405216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#405216 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405216
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405216#FFFFFF#000000##FFFFFF
##4052161.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C0D
Deuteranopia (green-blind)
#544C1B
Tritanopia (blue-blind)
#434E46
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #405216;
/* rgb */ color: rgb(64, 82, 22);
/* oklch */ color: oklch(41.0% 0.087 124.6);
Tailwind
colors: {
  custom: {
    50: '#778257',
    500: '#405216',
    950: '#000000',
  },
}
SCSS
$custom: #405216;
$custom-light: #778257;
$custom-dark: #000000;
JSON
{
  "hex": "#405216",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 22
  },
  "hsl": {
    "h": 78,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40984,
    "c": 0.08683,
    "h": 124.6
  },
  "luminance": 0.07183
}

Semantic roles & 50–950 ramp

primary
#405216
secondary
#523A89
accent
#47E175
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405216

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

Preview Lab → · Contrast checker → · Palette generator →

#405216 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva