#405C12#405C12

#405C12 is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.7% C 0.104 H 128.5°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#405C12
RGBrgb(64, 92, 18)
HSLhsl(83, 67%, 22%)
HSVhsv(83, 80%, 36%)
CMYKcmyk(30.4%, 0%, 80.4%, 63.9%)
CIE-LABlab(35.57, -22.65, 36.60)
CIE-LCHlch(35.57, 43.04, 121.75°)
OKLaboklab(43.69% -0.0648 0.0814)
OKLCHoklch(43.69% 0.104 128.5)
XYZxyz(6.0507, 8.7878, 1.9496)
Luminance0.0879 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C12 #2E125C
analogous
#5C5312 #405C12 #1B5C12
triadic
#405C12 #12405C #5C1240
tetradic
#405C12 #125C53 #2E125C #5C121B
square
#405C12 #125C53 #2E125C #5C121B
split-complementary
#405C12 #121B5C #53125C
monochromatic
#121A05 #1C2908 #405C12 #648F1C #87C226

Accessibility & contrast

On white

7.62
#405C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#405C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405C12
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C12#FFFFFF#000000##FFFFFF
##405C121.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615503
Deuteranopia (green-blind)
#5D5319
Tritanopia (blue-blind)
#42584E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405c12;
/* rgb */ color: rgb(64, 92, 18);
/* oklch */ color: oklch(43.7% 0.104 128.5);
Tailwind
colors: {
  custom: {
    50: '#788a56',
    500: '#405c12',
    950: '#000000',
  },
}
SCSS
$custom: #405c12;
$custom-light: #788a56;
$custom-dark: #000000;
JSON
{
  "hex": "#405c12",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 82.703,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.43694,
    "c": 0.10405,
    "h": 128.5
  },
  "luminance": 0.08788
}

Semantic roles & 50–950 ramp

primary
#405C12
secondary
#593594
accent
#3EEA7F
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405C12

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

Preview Lab → · Contrast checker → · Palette generator →

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