#404D17#404D17

#404D17 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.6% C 0.079 H 121.6°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#404D17
RGBrgb(64, 77, 23)
HSLhsl(74, 54%, 20%)
HSVhsv(74, 70%, 30%)
CMYKcmyk(16.9%, 0%, 70.1%, 69.8%)
CIE-LABlab(30.54, -14.24, 29.32)
CIE-LCHlch(30.54, 32.59, 115.91°)
OKLaboklab(39.64% -0.0412 0.067)
OKLCHoklch(39.64% 0.079 121.6)
XYZxyz(4.9229, 6.4596, 1.7979)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404D17 #24174D
analogous
#4D3F17 #404D17 #254D17
triadic
#404D17 #17404D #4D1740
tetradic
#404D17 #174D3F #24174D #4D1725
square
#404D17 #174D3F #24174D #4D1725
split-complementary
#404D17 #17254D #3F174D
monochromatic
#141807 #191E09 #404D17 #677C25 #8EAB33

Accessibility & contrast

On white

9.16
#404D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#404D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404D17
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404D17#FFFFFF#000000##FFFFFF
##404D171.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524810
Deuteranopia (green-blind)
#50481B
Tritanopia (blue-blind)
#444942
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #404d17;
/* rgb */ color: rgb(64, 77, 23);
/* oklch */ color: oklch(39.6% 0.079 121.6);
Tailwind
colors: {
  custom: {
    50: '#777e57',
    500: '#404d17',
    950: '#000000',
  },
}
SCSS
$custom: #404d17;
$custom-light: #777e57;
$custom-dark: #000000;
JSON
{
  "hex": "#404d17",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 23
  },
  "hsl": {
    "h": 74.444,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39635,
    "c": 0.07864,
    "h": 121.6
  },
  "luminance": 0.0646
}

Semantic roles & 50–950 ramp

primary
#404D17
secondary
#4D3C84
accent
#4ADD6E
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #404D17

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

Preview Lab → · Contrast checker → · Palette generator →

#404D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva