#405512#405512

#405512 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.8% C 0.094 H 125.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#405512
RGBrgb(64, 85, 18)
HSLhsl(79, 65%, 20%)
HSVhsv(79, 79%, 33%)
CMYKcmyk(24.7%, 0%, 78.8%, 66.7%)
CIE-LABlab(33.20, -19.01, 34.29)
CIE-LCHlch(33.20, 39.21, 119.00°)
OKLaboklab(41.77% -0.0549 0.0766)
OKLCHoklch(41.77% 0.094 125.6)
XYZxyz(5.4721, 7.6306, 1.7567)
Luminance0.0763 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405512 #271255
analogous
#554812 #405512 #1E5512
triadic
#405512 #124055 #551240
tetradic
#405512 #125548 #271255 #55121E
square
#405512 #125548 #271255 #55121E
split-complementary
#405512 #121E55 #481255
monochromatic
#131905 #1A2207 #405512 #66881D #8CBA27

Accessibility & contrast

On white

8.31
#405512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#405512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405512
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405512#FFFFFF#000000##FFFFFF
##4055121.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F06
Deuteranopia (green-blind)
#574E18
Tritanopia (blue-blind)
#435148
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #405512;
/* rgb */ color: rgb(64, 85, 18);
/* oklch */ color: oklch(41.8% 0.094 125.6);
Tailwind
colors: {
  custom: {
    50: '#778555',
    500: '#405512',
    950: '#000000',
  },
}
SCSS
$custom: #405512;
$custom-light: #778555;
$custom-dark: #000000;
JSON
{
  "hex": "#405512",
  "rgb": {
    "r": 64,
    "g": 85,
    "b": 18
  },
  "hsl": {
    "h": 78.806,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.41769,
    "c": 0.0942,
    "h": 125.6
  },
  "luminance": 0.07631
}

Semantic roles & 50–950 ramp

primary
#405512
secondary
#51358E
accent
#40E875
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405512

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

Preview Lab → · Contrast checker → · Palette generator →

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