#405B15#405B15

#405B15 is a dark, moderate yellow-green. Relative luminance 0.086; OKLCH L 43.4% C 0.101 H 128.5°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#405B15
RGBrgb(64, 91, 21)
HSLhsl(83, 63%, 22%)
HSVhsv(83, 77%, 36%)
CMYKcmyk(29.7%, 0%, 76.9%, 64.3%)
CIE-LABlab(35.25, -21.94, 35.09)
CIE-LCHlch(35.25, 41.38, 122.02°)
OKLaboklab(43.44% -0.0626 0.0788)
OKLCHoklch(43.44% 0.101 128.5)
XYZxyz(5.9908, 8.6262, 2.0587)
Luminance0.0863 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B15 #30155B
analogous
#5B5315 #405B15 #1D5B15
triadic
#405B15 #15405B #5B1540
tetradic
#405B15 #155B53 #30155B #5B151D
square
#405B15 #155B53 #30155B #5B151D
split-complementary
#405B15 #151D5B #53155B
monochromatic
#111906 #1D290A #405B15 #638D20 #86BE2C

Accessibility & contrast

On white

7.71
#405B15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#405B15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405B15
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B15#FFFFFF#000000##FFFFFF
##405B151.007.712.737.71
#FFFFFF7.711.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605409
Deuteranopia (green-blind)
#5C521B
Tritanopia (blue-blind)
#42574D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405b15;
/* rgb */ color: rgb(64, 91, 21);
/* oklch */ color: oklch(43.4% 0.101 128.5);
Tailwind
colors: {
  custom: {
    50: '#788958',
    500: '#405b15',
    950: '#000000',
  },
}
SCSS
$custom: #405b15;
$custom-light: #788958;
$custom-dark: #000000;
JSON
{
  "hex": "#405b15",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 21
  },
  "hsl": {
    "h": 83.143,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43442,
    "c": 0.10062,
    "h": 128.5
  },
  "luminance": 0.08626
}

Semantic roles & 50–950 ramp

primary
#405B15
secondary
#5C3992
accent
#42E681
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405B15

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

Preview Lab → · Contrast checker → · Palette generator →

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