#405215#405215

#405215 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 41.0% C 0.088 H 124.4°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#405215
RGBrgb(64, 82, 21)
HSLhsl(78, 59%, 20%)
HSVhsv(78, 74%, 32%)
CMYKcmyk(22%, 0%, 74.4%, 67.8%)
CIE-LABlab(32.21, -17.18, 32.01)
CIE-LCHlch(32.21, 36.33, 118.22°)
OKLaboklab(40.98% -0.0496 0.0723)
OKLCHoklch(40.98% 0.088 124.4)
XYZxyz(5.2670, 7.1787, 1.8175)
Luminance0.0718 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405215 #271552
analogous
#524515 #405215 #215215
triadic
#405215 #154052 #521540
tetradic
#405215 #155245 #271552 #521521
square
#405215 #155245 #271552 #521521
split-complementary
#405215 #152152 #451552
monochromatic
#131806 #1A2109 #405215 #668321 #8CB32E

Accessibility & contrast

On white

8.62
#405215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#405215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405215
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405215#FFFFFF#000000##FFFFFF
##4052151.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C0C
Deuteranopia (green-blind)
#544C1A
Tritanopia (blue-blind)
#434E46
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #405215;
/* rgb */ color: rgb(64, 82, 21);
/* oklch */ color: oklch(41.0% 0.088 124.4);
Tailwind
colors: {
  custom: {
    50: '#778256',
    500: '#405215',
    950: '#000000',
  },
}
SCSS
$custom: #405215;
$custom-light: #778256;
$custom-dark: #000000;
JSON
{
  "hex": "#405215",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 77.705,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40975,
    "c": 0.08766,
    "h": 124.4
  },
  "luminance": 0.07179
}

Semantic roles & 50–950 ramp

primary
#405215
secondary
#51398A
accent
#45E274
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405215

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

Preview Lab → · Contrast checker → · Palette generator →

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