#404C17#404C17

#404C17 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.4% C 0.077 H 120.9°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#404C17
RGBrgb(64, 76, 23)
HSLhsl(74, 54%, 19%)
HSVhsv(74, 70%, 30%)
CMYKcmyk(15.8%, 0%, 69.7%, 70.2%)
CIE-LABlab(30.21, -13.67, 28.96)
CIE-LCHlch(30.21, 32.02, 115.27°)
OKLaboklab(39.37% -0.0396 0.0662)
OKLCHoklch(39.37% 0.077 120.9)
XYZxyz(4.8535, 6.3207, 1.7748)
Luminance0.0632 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404C17 #23174C
analogous
#4C3E17 #404C17 #264C17
triadic
#404C17 #17404C #4C1740
tetradic
#404C17 #174C3E #23174C #4C1726
square
#404C17 #174C3E #23174C #4C1726
split-complementary
#404C17 #17264C #3E174C
monochromatic
#141707 #181D09 #404C17 #687B25 #8FAA33

Accessibility & contrast

On white

9.27
#404C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#404C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404C17
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404C17#FFFFFF#000000##FFFFFF
##404C171.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514710
Deuteranopia (green-blind)
#4F471B
Tritanopia (blue-blind)
#444841
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #404c17;
/* rgb */ color: rgb(64, 76, 23);
/* oklch */ color: oklch(39.4% 0.077 120.9);
Tailwind
colors: {
  custom: {
    50: '#767e57',
    500: '#404c17',
    950: '#000000',
  },
}
SCSS
$custom: #404c17;
$custom-light: #767e57;
$custom-dark: #000000;
JSON
{
  "hex": "#404c17",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 23
  },
  "hsl": {
    "h": 73.585,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39365,
    "c": 0.07717,
    "h": 120.9
  },
  "luminance": 0.06321
}

Semantic roles & 50–950 ramp

primary
#404C17
secondary
#4C3C83
accent
#4BDD6C
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090903
muted
#7B7B78

Preview Lab

Preview with #404C17

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

Preview Lab → · Contrast checker → · Palette generator →

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