#405717#405717

#405717 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.4% C 0.093 H 127.1°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#405717
RGBrgb(64, 87, 23)
HSLhsl(82, 58%, 22%)
HSVhsv(82, 74%, 34%)
CMYKcmyk(26.4%, 0%, 73.6%, 65.9%)
CIE-LABlab(33.92, -19.71, 32.86)
CIE-LCHlch(33.92, 38.32, 120.95°)
OKLaboklab(42.36% -0.0563 0.0744)
OKLCHoklch(42.36% 0.093 127.1)
XYZxyz(5.6772, 7.9681, 2.0493)
Luminance0.0797 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405717 #2E1757
analogous
#574E17 #405717 #205717
triadic
#405717 #174057 #571740
tetradic
#405717 #17574E #2E1757 #571720
square
#405717 #17574E #2E1757 #571720
split-complementary
#405717 #172057 #4E1757
monochromatic
#121806 #1C270A #405717 #648724 #87B831

Accessibility & contrast

On white

8.10
#405717 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #405717
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405717#FFFFFF#000000##FFFFFF
##4057171.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405717;
/* rgb */ color: rgb(64, 87, 23);
/* oklch */ color: oklch(42.4% 0.093 127.1);
Tailwind
colors: {
  custom: {
    50: '#778658',
    500: '#405717',
    950: '#000000',
  },
}
SCSS
$custom: #405717;
$custom-light: #778658;
$custom-dark: #000000;
JSON
{
  "hex": "#405717",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 23
  },
  "hsl": {
    "h": 81.563,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42361,
    "c": 0.09333,
    "h": 127.1
  },
  "luminance": 0.07968
}

Semantic roles & 50–950 ramp

primary
#405717
secondary
#593C8E
accent
#46E17E
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405717

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

Preview Lab → · Contrast checker → · Palette generator →

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