#405017#405017

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

Color values

HEX#405017
RGBrgb(64, 80, 23)
HSLhsl(77, 55%, 20%)
HSVhsv(77, 71%, 31%)
CMYKcmyk(20%, 0%, 71.2%, 68.6%)
CIE-LABlab(31.55, -15.92, 30.39)
CIE-LCHlch(31.55, 34.31, 117.64°)
OKLaboklab(40.45% -0.0459 0.0692)
OKLCHoklch(40.45% 0.083 123.5)
XYZxyz(5.1377, 6.8891, 1.8695)
Luminance0.0689 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405017 #271750
analogous
#504317 #405017 #235017
triadic
#405017 #174050 #501740
tetradic
#405017 #175043 #271750 #501723
square
#405017 #175043 #271750 #501723
split-complementary
#405017 #172350 #431750
monochromatic
#131807 #1A2009 #405017 #668025 #8CAF32

Accessibility & contrast

On white

8.83
#405017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #405017
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405017#FFFFFF#000000##FFFFFF
##4050171.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405017;
/* rgb */ color: rgb(64, 80, 23);
/* oklch */ color: oklch(40.4% 0.083 123.5);
Tailwind
colors: {
  custom: {
    50: '#778157',
    500: '#405017',
    950: '#000000',
  },
}
SCSS
$custom: #405017;
$custom-light: #778157;
$custom-dark: #000000;
JSON
{
  "hex": "#405017",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 76.842,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40449,
    "c": 0.08305,
    "h": 123.5
  },
  "luminance": 0.06889
}

Semantic roles & 50–950 ramp

primary
#405017
secondary
#513C87
accent
#49DF73
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405017

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

Preview Lab → · Contrast checker → · Palette generator →

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