#405015#405015

#405015 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.4% C 0.085 H 123.3°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#405015
RGBrgb(64, 80, 21)
HSLhsl(76, 58%, 20%)
HSVhsv(76, 74%, 31%)
CMYKcmyk(20%, 0%, 73.7%, 68.6%)
CIE-LABlab(31.54, -16.08, 31.31)
CIE-LCHlch(31.54, 35.20, 117.18°)
OKLaboklab(40.43% -0.0465 0.0708)
OKLCHoklch(40.43% 0.085 123.3)
XYZxyz(5.1184, 6.8814, 1.7679)
Luminance0.0688 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405015 #251550
analogous
#504315 #405015 #235015
triadic
#405015 #154050 #501540
tetradic
#405015 #155043 #251550 #501523
square
#405015 #155043 #251550 #501523
split-complementary
#405015 #152350 #431550
monochromatic
#131806 #192008 #405015 #678022 #8EB12E

Accessibility & contrast

On white

8.84
#405015 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#405015 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405015
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405015#FFFFFF#000000##FFFFFF
##4050151.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B0C
Deuteranopia (green-blind)
#534A1A
Tritanopia (blue-blind)
#434C44
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #405015;
/* rgb */ color: rgb(64, 80, 21);
/* oklch */ color: oklch(40.4% 0.085 123.3);
Tailwind
colors: {
  custom: {
    50: '#778156',
    500: '#405015',
    950: '#000000',
  },
}
SCSS
$custom: #405015;
$custom-light: #778156;
$custom-dark: #000000;
JSON
{
  "hex": "#405015",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 21
  },
  "hsl": {
    "h": 76.271,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.40429,
    "c": 0.08475,
    "h": 123.3
  },
  "luminance": 0.06881
}

Semantic roles & 50–950 ramp

primary
#405015
secondary
#4E3988
accent
#46E270
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405015

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

Preview Lab → · Contrast checker → · Palette generator →

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