#404E18#404E18

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

Color values

HEX#404E18
RGBrgb(64, 78, 24)
HSLhsl(76, 53%, 20%)
HSVhsv(76, 69%, 31%)
CMYKcmyk(17.9%, 0%, 69.2%, 69.4%)
CIE-LABlab(30.89, -14.72, 29.20)
CIE-LCHlch(30.89, 32.69, 116.75°)
OKLaboklab(39.92% -0.0424 0.0669)
OKLCHoklch(39.92% 0.079 122.4)
XYZxyz(5.0037, 6.6047, 1.8752)
Luminance0.0660 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404E18 #26184E
analogous
#4E4118 #404E18 #254E18
triadic
#404E18 #18404E #4E1840
tetradic
#404E18 #184E41 #26184E #4E1825
square
#404E18 #184E41 #26184E #4E1825
split-complementary
#404E18 #18254E #41184E
monochromatic
#131707 #1A1F0A #404E18 #667D26 #8DAC35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##404E18#FFFFFF#000000##FFFFFF
##404E181.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)
#534911
Deuteranopia (green-blind)
#51491C
Tritanopia (blue-blind)
#434A43
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #404e18;
/* rgb */ color: rgb(64, 78, 24);
/* oklch */ color: oklch(39.9% 0.079 122.4);
Tailwind
colors: {
  custom: {
    50: '#777f58',
    500: '#404e18',
    950: '#000000',
  },
}
SCSS
$custom: #404e18;
$custom-light: #777f58;
$custom-dark: #000000;
JSON
{
  "hex": "#404e18",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 24
  },
  "hsl": {
    "h": 75.556,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.39917,
    "c": 0.07918,
    "h": 122.4
  },
  "luminance": 0.06605
}

Semantic roles & 50–950 ramp

primary
#404E18
secondary
#503D85
accent
#4BDC71
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #404E18

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

Preview Lab → · Contrast checker → · Palette generator →

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