#405012#405012

#405012 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.4% C 0.087 H 123.0°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#405012
RGBrgb(64, 80, 18)
HSLhsl(75, 63%, 19%)
HSVhsv(75, 78%, 31%)
CMYKcmyk(20%, 0%, 77.5%, 68.6%)
CIE-LABlab(31.51, -16.30, 32.62)
CIE-LCHlch(31.51, 36.47, 116.55°)
OKLaboklab(40.4% -0.0475 0.0731)
OKLCHoklch(40.4% 0.087 123)
XYZxyz(5.0923, 6.8710, 1.6301)
Luminance0.0687 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405012 #221250
analogous
#504112 #405012 #215012
triadic
#405012 #124050 #501240
tetradic
#405012 #125041 #221250 #501221
square
#405012 #125041 #221250 #501221
split-complementary
#405012 #122150 #411250
monochromatic
#141906 #181E07 #405012 #68821D #90B428

Accessibility & contrast

On white

8.85
#405012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#405012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405012
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405012#FFFFFF#000000##FFFFFF
##4050121.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B08
Deuteranopia (green-blind)
#534A17
Tritanopia (blue-blind)
#444C44
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #405012;
/* rgb */ color: rgb(64, 80, 18);
/* oklch */ color: oklch(40.4% 0.087 123.0);
Tailwind
colors: {
  custom: {
    50: '#778154',
    500: '#405012',
    950: '#000000',
  },
}
SCSS
$custom: #405012;
$custom-light: #778154;
$custom-dark: #000000;
JSON
{
  "hex": "#405012",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 75.484,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.40402,
    "c": 0.08711,
    "h": 123
  },
  "luminance": 0.06871
}

Semantic roles & 50–950 ramp

primary
#405012
secondary
#4B3589
accent
#41E66C
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405012

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

Preview Lab → · Contrast checker → · Palette generator →

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