#405D12#405D12

#405D12 is a dark, moderate yellow-green. Relative luminance 0.090; OKLCH L 44.0% C 0.105 H 128.9°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#405D12
RGBrgb(64, 93, 18)
HSLhsl(83, 68%, 22%)
HSVhsv(83, 81%, 36%)
CMYKcmyk(31.2%, 0%, 80.6%, 63.5%)
CIE-LABlab(35.91, -23.16, 36.92)
CIE-LCHlch(35.91, 43.58, 122.09°)
OKLaboklab(43.97% -0.0662 0.0821)
OKLCHoklch(43.97% 0.105 128.9)
XYZxyz(6.1379, 8.9622, 1.9786)
Luminance0.0896 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405D12 #2F125D
analogous
#5D5512 #405D12 #1B5D12
triadic
#405D12 #12405D #5D1240
tetradic
#405D12 #125D55 #2F125D #5D121B
square
#405D12 #125D55 #2F125D #5D121B
split-complementary
#405D12 #121B5D #55125D
monochromatic
#121A05 #1D2A08 #405D12 #63901C #87C426

Accessibility & contrast

On white

7.52
#405D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#405D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405D12
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405D12#FFFFFF#000000##FFFFFF
##405D121.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625603
Deuteranopia (green-blind)
#5E5419
Tritanopia (blue-blind)
#42594F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405d12;
/* rgb */ color: rgb(64, 93, 18);
/* oklch */ color: oklch(44.0% 0.105 128.9);
Tailwind
colors: {
  custom: {
    50: '#788b56',
    500: '#405d12',
    950: '#000000',
  },
}
SCSS
$custom: #405d12;
$custom-light: #788b56;
$custom-dark: #000000;
JSON
{
  "hex": "#405d12",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 83.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.43969,
    "c": 0.10545,
    "h": 128.9
  },
  "luminance": 0.08962
}

Semantic roles & 50–950 ramp

primary
#405D12
secondary
#5B3595
accent
#3DEA80
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C03
muted
#7B7D78

Preview Lab

Preview with #405D12

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

Preview Lab → · Contrast checker → · Palette generator →

#405D12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva