#405412#405412

#405412 is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.5% C 0.093 H 125.2°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#405412
RGBrgb(64, 84, 18)
HSLhsl(78, 65%, 20%)
HSVhsv(78, 79%, 33%)
CMYKcmyk(23.8%, 0%, 78.6%, 67.1%)
CIE-LABlab(32.86, -18.47, 33.96)
CIE-LCHlch(32.86, 38.66, 118.54°)
OKLaboklab(41.5% -0.0534 0.0759)
OKLCHoklch(41.5% 0.093 125.2)
XYZxyz(5.3939, 7.4742, 1.7307)
Luminance0.0747 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405412 #261254
analogous
#544712 #405412 #1F5412
triadic
#405412 #124054 #541240
tetradic
#405412 #125447 #261254 #54121F
square
#405412 #125447 #261254 #54121F
split-complementary
#405412 #121F54 #471254
monochromatic
#131905 #1A2207 #405412 #66861D #8DB928

Accessibility & contrast

On white

8.42
#405412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#405412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405412
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405412#FFFFFF#000000##FFFFFF
##4054121.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E06
Deuteranopia (green-blind)
#564D18
Tritanopia (blue-blind)
#435047
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #405412;
/* rgb */ color: rgb(64, 84, 18);
/* oklch */ color: oklch(41.5% 0.093 125.2);
Tailwind
colors: {
  custom: {
    50: '#778455',
    500: '#405412',
    950: '#000000',
  },
}
SCSS
$custom: #405412;
$custom-light: #778455;
$custom-dark: #000000;
JSON
{
  "hex": "#405412",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 78.182,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.41495,
    "c": 0.09279,
    "h": 125.2
  },
  "luminance": 0.07474
}

Semantic roles & 50–950 ramp

primary
#405412
secondary
#50358D
accent
#40E873
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405412

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

Preview Lab → · Contrast checker → · Palette generator →

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