#405812#405812

#405812 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.6% C 0.098 H 127.0°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#405812
RGBrgb(64, 88, 18)
HSLhsl(81, 66%, 21%)
HSVhsv(81, 80%, 35%)
CMYKcmyk(27.3%, 0%, 79.5%, 65.5%)
CIE-LABlab(34.22, -20.59, 35.28)
CIE-LCHlch(34.22, 40.85, 120.27°)
OKLaboklab(42.59% -0.0592 0.0786)
OKLCHoklch(42.59% 0.098 127)
XYZxyz(5.7133, 8.1130, 1.8371)
Luminance0.0811 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405812 #2A1258
analogous
#584D12 #405812 #1D5812
triadic
#405812 #124058 #581240
tetradic
#405812 #12584D #2A1258 #58121D
square
#405812 #12584D #2A1258 #58121D
split-complementary
#405812 #121D58 #4D1258
monochromatic
#121905 #1B2508 #405812 #658B1C #8ABE27

Accessibility & contrast

On white

8.01
#405812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#405812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405812
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405812#FFFFFF#000000##FFFFFF
##4058121.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5105
Deuteranopia (green-blind)
#5A5019
Tritanopia (blue-blind)
#43544B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #405812;
/* rgb */ color: rgb(64, 88, 18);
/* oklch */ color: oklch(42.6% 0.098 127.0);
Tailwind
colors: {
  custom: {
    50: '#788756',
    500: '#405812',
    950: '#000000',
  },
}
SCSS
$custom: #405812;
$custom-light: #788756;
$custom-dark: #000000;
JSON
{
  "hex": "#405812",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 18
  },
  "hsl": {
    "h": 80.571,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42593,
    "c": 0.09844,
    "h": 127
  },
  "luminance": 0.08113
}

Semantic roles & 50–950 ramp

primary
#405812
secondary
#553591
accent
#3FE979
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405812

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

Preview Lab → · Contrast checker → · Palette generator →

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