#405811#405811

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

Color values

HEX#405811
RGBrgb(64, 88, 17)
HSLhsl(80, 68%, 21%)
HSVhsv(80, 81%, 35%)
CMYKcmyk(27.3%, 0%, 80.7%, 65.5%)
CIE-LABlab(34.21, -20.65, 35.67)
CIE-LCHlch(34.21, 41.22, 120.07°)
OKLaboklab(42.59% -0.0595 0.0793)
OKLCHoklch(42.59% 0.099 126.9)
XYZxyz(5.7053, 8.1098, 1.7950)
Luminance0.0811 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405811 #291158
analogous
#584C11 #405811 #1C5811
triadic
#405811 #114058 #581140
tetradic
#405811 #11584C #291158 #58111C
square
#405811 #11584C #291158 #58111C
split-complementary
#405811 #111C58 #4C1158
monochromatic
#131A05 #1B2507 #405811 #658B1B #8BBF25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405811#FFFFFF#000000##FFFFFF
##4058111.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)
#5D5103
Deuteranopia (green-blind)
#5A5018
Tritanopia (blue-blind)
#43544A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #405811;
/* rgb */ color: rgb(64, 88, 17);
/* oklch */ color: oklch(42.6% 0.099 126.9);
Tailwind
colors: {
  custom: {
    50: '#788755',
    500: '#405811',
    950: '#000000',
  },
}
SCSS
$custom: #405811;
$custom-light: #788755;
$custom-dark: #000000;
JSON
{
  "hex": "#405811",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 17
  },
  "hsl": {
    "h": 80.282,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42585,
    "c": 0.0991,
    "h": 126.9
  },
  "luminance": 0.0811
}

Semantic roles & 50–950 ramp

primary
#405811
secondary
#533491
accent
#3DEA78
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405811

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

Preview Lab → · Contrast checker → · Palette generator →

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