#405212#405212

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

Color values

HEX#405212
RGBrgb(64, 82, 18)
HSLhsl(77, 64%, 20%)
HSVhsv(77, 78%, 32%)
CMYKcmyk(22%, 0%, 78%, 67.8%)
CIE-LABlab(32.19, -17.39, 33.29)
CIE-LCHlch(32.19, 37.56, 117.58°)
OKLaboklab(40.95% -0.0505 0.0745)
OKLCHoklch(40.95% 0.09 124.1)
XYZxyz(5.2409, 7.1682, 1.6796)
Luminance0.0717 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405212 #241252
analogous
#524412 #405212 #205212
triadic
#405212 #124052 #521240
tetradic
#405212 #125244 #241252 #521220
square
#405212 #125244 #241252 #521220
split-complementary
#405212 #122052 #441252
monochromatic
#141906 #192007 #405212 #67841D #8EB628

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405212#FFFFFF#000000##FFFFFF
##4052121.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)
#574C07
Deuteranopia (green-blind)
#554C18
Tritanopia (blue-blind)
#434E46
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #405212;
/* rgb */ color: rgb(64, 82, 18);
/* oklch */ color: oklch(40.9% 0.090 124.1);
Tailwind
colors: {
  custom: {
    50: '#778255',
    500: '#405212',
    950: '#000000',
  },
}
SCSS
$custom: #405212;
$custom-light: #778255;
$custom-dark: #000000;
JSON
{
  "hex": "#405212",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 76.875,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.40948,
    "c": 0.08995,
    "h": 124.1
  },
  "luminance": 0.07168
}

Semantic roles & 50–950 ramp

primary
#405212
secondary
#4D358B
accent
#41E770
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405212

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

Preview Lab → · Contrast checker → · Palette generator →

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