#405E12#405E12

#405E12 is a dark, moderate yellow-green. Relative luminance 0.091; OKLCH L 44.2% C 0.107 H 129.2°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#405E12
RGBrgb(64, 94, 18)
HSLhsl(84, 68%, 22%)
HSVhsv(84, 81%, 37%)
CMYKcmyk(31.9%, 0%, 80.9%, 63.1%)
CIE-LABlab(36.25, -23.66, 37.25)
CIE-LCHlch(36.25, 44.13, 122.43°)
OKLaboklab(44.25% -0.0676 0.0828)
OKLCHoklch(44.25% 0.107 129.2)
XYZxyz(6.2262, 9.1389, 2.0081)
Luminance0.0914 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405E12 #30125E
analogous
#5E5612 #405E12 #1A5E12
triadic
#405E12 #12405E #5E1240
tetradic
#405E12 #125E56 #30125E #5E121A
square
#405E12 #125E56 #30125E #5E121A
split-complementary
#405E12 #121A5E #56125E
monochromatic
#111A05 #1D2B08 #405E12 #63911C #86C526

Accessibility & contrast

On white

7.43
#405E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#405E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405E12
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405E12#FFFFFF#000000##FFFFFF
##405E121.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635703
Deuteranopia (green-blind)
#5F551A
Tritanopia (blue-blind)
#425950
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #405e12;
/* rgb */ color: rgb(64, 94, 18);
/* oklch */ color: oklch(44.2% 0.107 129.2);
Tailwind
colors: {
  custom: {
    50: '#788c57',
    500: '#405e12',
    950: '#000000',
  },
}
SCSS
$custom: #405e12;
$custom-light: #788c57;
$custom-dark: #000000;
JSON
{
  "hex": "#405e12",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 83.684,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.44245,
    "c": 0.10684,
    "h": 129.2
  },
  "luminance": 0.09139
}

Semantic roles & 50–950 ramp

primary
#405E12
secondary
#5C3596
accent
#3DEB82
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C03
muted
#7B7D78

Preview Lab

Preview with #405E12

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

Preview Lab → · Contrast checker → · Palette generator →

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