#405712#405712

#405712 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.3% C 0.097 H 126.6°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#405712
RGBrgb(64, 87, 18)
HSLhsl(80, 66%, 21%)
HSVhsv(80, 79%, 34%)
CMYKcmyk(26.4%, 0%, 79.3%, 65.9%)
CIE-LABlab(33.88, -20.07, 34.96)
CIE-LCHlch(33.88, 40.31, 119.86°)
OKLaboklab(42.32% -0.0578 0.0779)
OKLCHoklch(42.32% 0.097 126.6)
XYZxyz(5.6318, 7.9500, 1.8099)
Luminance0.0795 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405712 #291257
analogous
#574B12 #405712 #1D5712
triadic
#405712 #124057 #571240
tetradic
#405712 #12574B #291257 #57121D
square
#405712 #12574B #291257 #57121D
split-complementary
#405712 #121D57 #4B1257
monochromatic
#131905 #1B2408 #405712 #658A1C #8BBC27

Accessibility & contrast

On white

8.11
#405712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#405712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405712
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405712#FFFFFF#000000##FFFFFF
##4057121.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5105
Deuteranopia (green-blind)
#594F18
Tritanopia (blue-blind)
#43534A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #405712;
/* rgb */ color: rgb(64, 87, 18);
/* oklch */ color: oklch(42.3% 0.097 126.6);
Tailwind
colors: {
  custom: {
    50: '#778655',
    500: '#405712',
    950: '#000000',
  },
}
SCSS
$custom: #405712;
$custom-light: #778655;
$custom-dark: #000000;
JSON
{
  "hex": "#405712",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 80,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42318,
    "c": 0.09703,
    "h": 126.6
  },
  "luminance": 0.0795
}

Semantic roles & 50–950 ramp

primary
#405712
secondary
#533590
accent
#3FE978
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405712

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

Preview Lab → · Contrast checker → · Palette generator →

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