#404F17#404F17

#404F17 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 40.2% C 0.082 H 122.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#404F17
RGBrgb(64, 79, 23)
HSLhsl(76, 55%, 20%)
HSVhsv(76, 71%, 31%)
CMYKcmyk(19%, 0%, 70.9%, 69%)
CIE-LABlab(31.22, -15.36, 30.03)
CIE-LCHlch(31.22, 33.74, 117.09°)
OKLaboklab(40.18% -0.0443 0.0685)
OKLCHoklch(40.18% 0.082 122.9)
XYZxyz(5.0650, 6.7438, 1.8453)
Luminance0.0674 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F17 #26174F
analogous
#4F4217 #404F17 #244F17
triadic
#404F17 #17404F #4F1740
tetradic
#404F17 #174F42 #26174F #4F1724
square
#404F17 #174F42 #26174F #4F1724
split-complementary
#404F17 #17244F #42174F
monochromatic
#131807 #1A2009 #404F17 #667E25 #8DAE33

Accessibility & contrast

On white

8.94
#404F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#404F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404F17
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F17#FFFFFF#000000##FFFFFF
##404F171.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A10
Deuteranopia (green-blind)
#52491B
Tritanopia (blue-blind)
#434B43
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #404f17;
/* rgb */ color: rgb(64, 79, 23);
/* oklch */ color: oklch(40.2% 0.082 122.9);
Tailwind
colors: {
  custom: {
    50: '#778057',
    500: '#404f17',
    950: '#000000',
  },
}
SCSS
$custom: #404f17;
$custom-light: #778057;
$custom-dark: #000000;
JSON
{
  "hex": "#404f17",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 23
  },
  "hsl": {
    "h": 76.071,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.40178,
    "c": 0.08158,
    "h": 122.9
  },
  "luminance": 0.06744
}

Semantic roles & 50–950 ramp

primary
#404F17
secondary
#503C86
accent
#4ADE71
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #404F17

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

Preview Lab → · Contrast checker → · Palette generator →

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