#405817#405817

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

Color values

HEX#405817
RGBrgb(64, 88, 23)
HSLhsl(82, 59%, 22%)
HSVhsv(82, 74%, 35%)
CMYKcmyk(27.3%, 0%, 73.9%, 65.5%)
CIE-LABlab(34.25, -20.23, 33.21)
CIE-LCHlch(34.25, 38.89, 121.35°)
OKLaboklab(42.64% -0.0578 0.0752)
OKLCHoklch(42.64% 0.095 127.6)
XYZxyz(5.7587, 8.1312, 2.0765)
Luminance0.0813 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405817 #2F1758
analogous
#585017 #405817 #205817
triadic
#405817 #174058 #581740
tetradic
#405817 #175850 #2F1758 #581720
square
#405817 #175850 #2F1758 #581720
split-complementary
#405817 #172058 #501758
monochromatic
#121806 #1D270A #405817 #638924 #87B930

Accessibility & contrast

On white

8.00
#405817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#405817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405817
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405817#FFFFFF#000000##FFFFFF
##4058171.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520D
Deuteranopia (green-blind)
#59501C
Tritanopia (blue-blind)
#43544B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #405817;
/* rgb */ color: rgb(64, 88, 23);
/* oklch */ color: oklch(42.6% 0.095 127.6);
Tailwind
colors: {
  custom: {
    50: '#778758',
    500: '#405817',
    950: '#000000',
  },
}
SCSS
$custom: #405817;
$custom-light: #778758;
$custom-dark: #000000;
JSON
{
  "hex": "#405817",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 82.154,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42635,
    "c": 0.09479,
    "h": 127.6
  },
  "luminance": 0.08131
}

Semantic roles & 50–950 ramp

primary
#405817
secondary
#5B3C8F
accent
#46E280
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405817

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

Preview Lab → · Contrast checker → · Palette generator →

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