#405B12#405B12

#405B12 is a dark, moderate yellow-green. Relative luminance 0.086; OKLCH L 43.4% C 0.103 H 128.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#405B12
RGBrgb(64, 91, 18)
HSLhsl(82, 67%, 21%)
HSVhsv(82, 80%, 36%)
CMYKcmyk(29.7%, 0%, 80.2%, 64.3%)
CIE-LABlab(35.23, -22.14, 36.27)
CIE-LCHlch(35.23, 42.49, 121.40°)
OKLaboklab(43.42% -0.0635 0.0807)
OKLCHoklch(43.42% 0.103 128.2)
XYZxyz(5.9646, 8.6157, 1.9209)
Luminance0.0862 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B12 #2D125B
analogous
#5B5212 #405B12 #1C5B12
triadic
#405B12 #12405B #5B1240
tetradic
#405B12 #125B52 #2D125B #5B121C
square
#405B12 #125B52 #2D125B #5B121C
split-complementary
#405B12 #121C5B #52125B
monochromatic
#121A05 #1C2808 #405B12 #648E1C #88C126

Accessibility & contrast

On white

7.71
#405B12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#405B12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405B12
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B12#FFFFFF#000000##FFFFFF
##405B121.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605404
Deuteranopia (green-blind)
#5C5219
Tritanopia (blue-blind)
#42574D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405b12;
/* rgb */ color: rgb(64, 91, 18);
/* oklch */ color: oklch(43.4% 0.103 128.2);
Tailwind
colors: {
  custom: {
    50: '#788956',
    500: '#405b12',
    950: '#000000',
  },
}
SCSS
$custom: #405b12;
$custom-light: #788956;
$custom-dark: #000000;
JSON
{
  "hex": "#405b12",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 18
  },
  "hsl": {
    "h": 82.192,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.43418,
    "c": 0.10266,
    "h": 128.2
  },
  "luminance": 0.08616
}

Semantic roles & 50–950 ramp

primary
#405B12
secondary
#583593
accent
#3EEA7E
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405B12

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

Preview Lab → · Contrast checker → · Palette generator →

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