#404C18#404C18

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

Color values

HEX#404C18
RGBrgb(64, 76, 24)
HSLhsl(74, 52%, 20%)
HSVhsv(74, 68%, 30%)
CMYKcmyk(15.8%, 0%, 68.4%, 70.2%)
CIE-LABlab(30.22, -13.58, 28.47)
CIE-LCHlch(30.22, 31.54, 115.51°)
OKLaboklab(39.38% -0.0393 0.0653)
OKLCHoklch(39.38% 0.076 121)
XYZxyz(4.8637, 6.3248, 1.8286)
Luminance0.0633 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404C18 #24184C
analogous
#4C3E18 #404C18 #264C18
triadic
#404C18 #18404C #4C1840
tetradic
#404C18 #184C3E #24184C #4C1826
square
#404C18 #184C3E #24184C #4C1826
split-complementary
#404C18 #18264C #3E184C
monochromatic
#141707 #191D09 #404C18 #677B27 #8EA935

Accessibility & contrast

On white

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

On black

2.27
#404C18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##404C18#FFFFFF#000000##FFFFFF
##404C181.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #404c18;
/* rgb */ color: rgb(64, 76, 24);
/* oklch */ color: oklch(39.4% 0.076 121.0);
Tailwind
colors: {
  custom: {
    50: '#767e57',
    500: '#404c18',
    950: '#000000',
  },
}
SCSS
$custom: #404c18;
$custom-light: #767e57;
$custom-dark: #000000;
JSON
{
  "hex": "#404c18",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 24
  },
  "hsl": {
    "h": 73.846,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39376,
    "c": 0.07622,
    "h": 121
  },
  "luminance": 0.06325
}

Semantic roles & 50–950 ramp

primary
#404C18
secondary
#4D3D83
accent
#4CDB6D
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090903
muted
#7B7B78

Preview Lab

Preview with #404C18

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

Preview Lab → · Contrast checker → · Palette generator →

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