#404E17#404E17

#404E17 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.9% C 0.080 H 122.3°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#404E17
RGBrgb(64, 78, 23)
HSLhsl(75, 54%, 20%)
HSVhsv(75, 71%, 31%)
CMYKcmyk(17.9%, 0%, 70.5%, 69.4%)
CIE-LABlab(30.88, -14.80, 29.68)
CIE-LCHlch(30.88, 33.16, 116.51°)
OKLaboklab(39.91% -0.0428 0.0677)
OKLCHoklch(39.91% 0.08 122.3)
XYZxyz(4.9934, 6.6006, 1.8214)
Luminance0.0660 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404E17 #25174E
analogous
#4E4117 #404E17 #254E17
triadic
#404E17 #17404E #4E1740
tetradic
#404E17 #174E41 #25174E #4E1725
square
#404E17 #174E41 #25174E #4E1725
split-complementary
#404E17 #17254E #41174E
monochromatic
#131807 #191F09 #404E17 #677D25 #8EAD33

Accessibility & contrast

On white

9.05
#404E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#404E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404E17
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404E17#FFFFFF#000000##FFFFFF
##404E171.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534910
Deuteranopia (green-blind)
#51491B
Tritanopia (blue-blind)
#444A43
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #404e17;
/* rgb */ color: rgb(64, 78, 23);
/* oklch */ color: oklch(39.9% 0.080 122.3);
Tailwind
colors: {
  custom: {
    50: '#777f57',
    500: '#404e17',
    950: '#000000',
  },
}
SCSS
$custom: #404e17;
$custom-light: #777f57;
$custom-dark: #000000;
JSON
{
  "hex": "#404e17",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 23
  },
  "hsl": {
    "h": 75.273,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39906,
    "c": 0.0801,
    "h": 122.3
  },
  "luminance": 0.06601
}

Semantic roles & 50–950 ramp

primary
#404E17
secondary
#4E3C85
accent
#4ADE70
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #404E17

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

Preview Lab → · Contrast checker → · Palette generator →

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