#405912#405912

#405912 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.9% C 0.100 H 127.4°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#405912
RGBrgb(64, 89, 18)
HSLhsl(81, 66%, 21%)
HSVhsv(81, 80%, 35%)
CMYKcmyk(28.1%, 0%, 79.8%, 65.1%)
CIE-LABlab(34.56, -21.11, 35.61)
CIE-LCHlch(34.56, 41.40, 120.66°)
OKLaboklab(42.87% -0.0606 0.0793)
OKLCHoklch(42.87% 0.1 127.4)
XYZxyz(5.7959, 8.2783, 1.8647)
Luminance0.0828 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405912 #2B1259
analogous
#594E12 #405912 #1C5912
triadic
#405912 #124059 #591240
tetradic
#405912 #12594E #2B1259 #59121C
square
#405912 #12594E #2B1259 #59121C
split-complementary
#405912 #121C59 #4E1259
monochromatic
#121905 #1B2608 #405912 #658C1C #89BF27

Accessibility & contrast

On white

7.91
#405912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#405912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405912
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405912#FFFFFF#000000##FFFFFF
##4059121.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5204
Deuteranopia (green-blind)
#5B5119
Tritanopia (blue-blind)
#43554B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #405912;
/* rgb */ color: rgb(64, 89, 18);
/* oklch */ color: oklch(42.9% 0.100 127.4);
Tailwind
colors: {
  custom: {
    50: '#788856',
    500: '#405912',
    950: '#000000',
  },
}
SCSS
$custom: #405912;
$custom-light: #788856;
$custom-dark: #000000;
JSON
{
  "hex": "#405912",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 18
  },
  "hsl": {
    "h": 81.127,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42868,
    "c": 0.09984,
    "h": 127.4
  },
  "luminance": 0.08278
}

Semantic roles & 50–950 ramp

primary
#405912
secondary
#563592
accent
#3FE97B
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405912

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

Preview Lab → · Contrast checker → · Palette generator →

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