#405312#405312

#405312 is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 41.2% C 0.091 H 124.7°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#405312
RGBrgb(64, 83, 18)
HSLhsl(78, 64%, 20%)
HSVhsv(78, 78%, 33%)
CMYKcmyk(22.9%, 0%, 78.3%, 67.5%)
CIE-LABlab(32.52, -17.94, 33.63)
CIE-LCHlch(32.52, 38.11, 118.07°)
OKLaboklab(41.22% -0.052 0.0752)
OKLCHoklch(41.22% 0.091 124.7)
XYZxyz(5.3168, 7.3201, 1.7050)
Luminance0.0732 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405312 #251253
analogous
#534512 #405312 #205312
triadic
#405312 #124053 #531240
tetradic
#405312 #125345 #251253 #531220
square
#405312 #125345 #251253 #531220
split-complementary
#405312 #122053 #451253
monochromatic
#131905 #192107 #405312 #67851D #8EB828

Accessibility & contrast

On white

8.52
#405312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#405312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405312
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405312#FFFFFF#000000##FFFFFF
##4053121.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D07
Deuteranopia (green-blind)
#554C18
Tritanopia (blue-blind)
#434F46
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #405312;
/* rgb */ color: rgb(64, 83, 18);
/* oklch */ color: oklch(41.2% 0.091 124.7);
Tailwind
colors: {
  custom: {
    50: '#778355',
    500: '#405312',
    950: '#000000',
  },
}
SCSS
$custom: #405312;
$custom-light: #778355;
$custom-dark: #000000;
JSON
{
  "hex": "#405312",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 77.538,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.41222,
    "c": 0.09137,
    "h": 124.7
  },
  "luminance": 0.0732
}

Semantic roles & 50–950 ramp

primary
#405312
secondary
#4E358C
accent
#40E771
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405312

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

Preview Lab → · Contrast checker → · Palette generator →

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