#405C17#405C17

#405C17 is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.7% C 0.101 H 129.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#405C17
RGBrgb(64, 92, 23)
HSLhsl(84, 60%, 23%)
HSVhsv(84, 75%, 36%)
CMYKcmyk(30.4%, 0%, 75%, 63.9%)
CIE-LABlab(35.61, -22.31, 34.60)
CIE-LCHlch(35.61, 41.16, 122.81°)
OKLaboklab(43.73% -0.0634 0.0781)
OKLCHoklch(43.73% 0.101 129.1)
XYZxyz(6.0961, 8.8060, 2.1890)
Luminance0.0881 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C17 #33175C
analogous
#5C5617 #405C17 #1D5C17
triadic
#405C17 #17405C #5C1740
tetradic
#405C17 #175C56 #33175C #5C171D
square
#405C17 #175C56 #33175C #5C171D
split-complementary
#405C17 #171D5C #56175C
monochromatic
#111806 #1E2B0B #405C17 #628D23 #84BE2F

Accessibility & contrast

On white

7.61
#405C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#405C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405C17
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C17#FFFFFF#000000##FFFFFF
##405C171.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61550C
Deuteranopia (green-blind)
#5D531D
Tritanopia (blue-blind)
#42584E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #405c17;
/* rgb */ color: rgb(64, 92, 23);
/* oklch */ color: oklch(43.7% 0.101 129.1);
Tailwind
colors: {
  custom: {
    50: '#788a59',
    500: '#405c17',
    950: '#000000',
  },
}
SCSS
$custom: #405c17;
$custom-light: #788a59;
$custom-dark: #000000;
JSON
{
  "hex": "#405c17",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 23
  },
  "hsl": {
    "h": 84.348,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.43734,
    "c": 0.10058,
    "h": 129.1
  },
  "luminance": 0.08806
}

Semantic roles & 50–950 ramp

primary
#405C17
secondary
#5F3C93
accent
#45E385
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405C17

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

Preview Lab → · Contrast checker → · Palette generator →

#405C17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva