#404D18#404D18

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

Color values

HEX#404D18
RGBrgb(64, 77, 24)
HSLhsl(75, 52%, 20%)
HSVhsv(75, 69%, 30%)
CMYKcmyk(16.9%, 0%, 68.8%, 69.8%)
CIE-LABlab(30.55, -14.15, 28.83)
CIE-LCHlch(30.55, 32.12, 116.14°)
OKLaboklab(39.65% -0.0409 0.0661)
OKLCHoklch(39.65% 0.078 121.7)
XYZxyz(4.9332, 6.4637, 1.8517)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404D18 #25184D
analogous
#4D4018 #404D18 #264D18
triadic
#404D18 #18404D #4D1840
tetradic
#404D18 #184D40 #25184D #4D1826
square
#404D18 #184D40 #25184D #4D1826
split-complementary
#404D18 #18264D #40184D
monochromatic
#131707 #191E09 #404D18 #677C27 #8EAA35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##404D18#FFFFFF#000000##FFFFFF
##404D181.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)
#524812
Deuteranopia (green-blind)
#50481C
Tritanopia (blue-blind)
#444942
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #404d18;
/* rgb */ color: rgb(64, 77, 24);
/* oklch */ color: oklch(39.6% 0.078 121.7);
Tailwind
colors: {
  custom: {
    50: '#767e58',
    500: '#404d18',
    950: '#000000',
  },
}
SCSS
$custom: #404d18;
$custom-light: #767e58;
$custom-dark: #000000;
JSON
{
  "hex": "#404d18",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 24
  },
  "hsl": {
    "h": 74.717,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39646,
    "c": 0.0777,
    "h": 121.7
  },
  "luminance": 0.06464
}

Semantic roles & 50–950 ramp

primary
#404D18
secondary
#4E3D84
accent
#4CDC6F
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #404D18

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

Preview Lab → · Contrast checker → · Palette generator →

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