#405915#405915

#405915 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.9% C 0.098 H 127.7°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#405915
RGBrgb(64, 89, 21)
HSLhsl(82, 62%, 22%)
HSVhsv(82, 76%, 35%)
CMYKcmyk(28.1%, 0%, 76.4%, 65.1%)
CIE-LABlab(34.58, -20.91, 34.41)
CIE-LCHlch(34.58, 40.26, 121.28°)
OKLaboklab(42.89% -0.0598 0.0773)
OKLCHoklch(42.89% 0.098 127.7)
XYZxyz(5.8221, 8.2888, 2.0025)
Luminance0.0829 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405915 #2E1559
analogous
#595015 #405915 #1E5915
triadic
#405915 #154059 #591540
tetradic
#405915 #155950 #2E1559 #59151E
square
#405915 #155950 #2E1559 #59151E
split-complementary
#405915 #151E59 #501559
monochromatic
#121906 #1C2709 #405915 #648B21 #87BC2C

Accessibility & contrast

On white

7.90
#405915 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#405915 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405915
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405915#FFFFFF#000000##FFFFFF
##4059151.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5209
Deuteranopia (green-blind)
#5A511B
Tritanopia (blue-blind)
#43554C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #405915;
/* rgb */ color: rgb(64, 89, 21);
/* oklch */ color: oklch(42.9% 0.098 127.7);
Tailwind
colors: {
  custom: {
    50: '#778857',
    500: '#405915',
    950: '#000000',
  },
}
SCSS
$custom: #405915;
$custom-light: #778857;
$custom-dark: #000000;
JSON
{
  "hex": "#405915",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 21
  },
  "hsl": {
    "h": 82.059,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42892,
    "c": 0.09776,
    "h": 127.7
  },
  "luminance": 0.08289
}

Semantic roles & 50–950 ramp

primary
#405915
secondary
#593991
accent
#43E57E
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405915

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

Preview Lab → · Contrast checker → · Palette generator →

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