#405612#405612

#405612 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 42.0% C 0.096 H 126.1°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#405612
RGBrgb(64, 86, 18)
HSLhsl(79, 65%, 20%)
HSVhsv(79, 79%, 34%)
CMYKcmyk(25.6%, 0%, 79.1%, 66.3%)
CIE-LABlab(33.54, -19.54, 34.62)
CIE-LCHlch(33.54, 39.76, 119.44°)
OKLaboklab(42.04% -0.0563 0.0773)
OKLCHoklch(42.04% 0.096 126.1)
XYZxyz(5.5514, 7.7892, 1.7831)
Luminance0.0779 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405612 #281256
analogous
#564A12 #405612 #1E5612
triadic
#405612 #124056 #561240
tetradic
#405612 #12564A #281256 #56121E
square
#405612 #12564A #281256 #56121E
split-complementary
#405612 #121E56 #4A1256
monochromatic
#131905 #1A2307 #405612 #66891D #8BBB27

Accessibility & contrast

On white

8.21
#405612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#405612 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405612
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405612#FFFFFF#000000##FFFFFF
##4056121.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5006
Deuteranopia (green-blind)
#584F18
Tritanopia (blue-blind)
#435249
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #405612;
/* rgb */ color: rgb(64, 86, 18);
/* oklch */ color: oklch(42.0% 0.096 126.1);
Tailwind
colors: {
  custom: {
    50: '#778555',
    500: '#405612',
    950: '#000000',
  },
}
SCSS
$custom: #405612;
$custom-light: #778555;
$custom-dark: #000000;
JSON
{
  "hex": "#405612",
  "rgb": {
    "r": 64,
    "g": 86,
    "b": 18
  },
  "hsl": {
    "h": 79.412,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.42044,
    "c": 0.09562,
    "h": 126.1
  },
  "luminance": 0.07789
}

Semantic roles & 50–950 ramp

primary
#405612
secondary
#52358F
accent
#3FE876
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405612

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

Preview Lab → · Contrast checker → · Palette generator →

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