#405211#405211

#405211 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.9% C 0.091 H 124.0°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#405211
RGBrgb(64, 82, 17)
HSLhsl(77, 66%, 19%)
HSVhsv(77, 79%, 32%)
CMYKcmyk(22%, 0%, 79.3%, 67.8%)
CIE-LABlab(32.18, -17.46, 33.70)
CIE-LCHlch(32.18, 37.95, 117.39°)
OKLaboklab(40.94% -0.0508 0.0751)
OKLCHoklch(40.94% 0.091 124)
XYZxyz(5.2329, 7.1650, 1.6375)
Luminance0.0717 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405211 #231152
analogous
#524411 #405211 #205211
triadic
#405211 #114052 #521140
tetradic
#405211 #115244 #231152 #521120
square
#405211 #115244 #231152 #521120
split-complementary
#405211 #112052 #441152
monochromatic
#141905 #181F06 #405211 #68851C #8FB726

Accessibility & contrast

On white

8.63
#405211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#405211 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405211
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405211#FFFFFF#000000##FFFFFF
##4052111.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C05
Deuteranopia (green-blind)
#554C17
Tritanopia (blue-blind)
#434E45
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #405211;
/* rgb */ color: rgb(64, 82, 17);
/* oklch */ color: oklch(40.9% 0.091 124.0);
Tailwind
colors: {
  custom: {
    50: '#778254',
    500: '#405211',
    950: '#000000',
  },
}
SCSS
$custom: #405211;
$custom-light: #778254;
$custom-dark: #000000;
JSON
{
  "hex": "#405211",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 76.615,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.4094,
    "c": 0.09066,
    "h": 124
  },
  "luminance": 0.07165
}

Semantic roles & 50–950 ramp

primary
#405211
secondary
#4C348B
accent
#3FE96E
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405211

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

Preview Lab → · Contrast checker → · Palette generator →

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