#404F18#404F18

#404F18 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 40.2% C 0.081 H 123.1°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#404F18
RGBrgb(64, 79, 24)
HSLhsl(76, 53%, 20%)
HSVhsv(76, 70%, 31%)
CMYKcmyk(19%, 0%, 69.6%, 69%)
CIE-LABlab(31.23, -15.28, 29.56)
CIE-LCHlch(31.23, 33.27, 117.34°)
OKLaboklab(40.19% -0.044 0.0676)
OKLCHoklch(40.19% 0.081 123.1)
XYZxyz(5.0752, 6.7479, 1.8991)
Luminance0.0675 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F18 #27184F
analogous
#4F4318 #404F18 #244F18
triadic
#404F18 #18404F #4F1840
tetradic
#404F18 #184F43 #27184F #4F1824
square
#404F18 #184F43 #27184F #4F1824
split-complementary
#404F18 #18244F #43184F
monochromatic
#131707 #1A200A #404F18 #667E26 #8CAD35

Accessibility & contrast

On white

8.94
#404F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#404F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404F18
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F18#FFFFFF#000000##FFFFFF
##404F181.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A11
Deuteranopia (green-blind)
#52491C
Tritanopia (blue-blind)
#434B44
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #404f18;
/* rgb */ color: rgb(64, 79, 24);
/* oklch */ color: oklch(40.2% 0.081 123.1);
Tailwind
colors: {
  custom: {
    50: '#778058',
    500: '#404f18',
    950: '#000000',
  },
}
SCSS
$custom: #404f18;
$custom-light: #778058;
$custom-dark: #000000;
JSON
{
  "hex": "#404f18",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 24
  },
  "hsl": {
    "h": 76.364,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40188,
    "c": 0.08068,
    "h": 123.1
  },
  "luminance": 0.06748
}

Semantic roles & 50–950 ramp

primary
#404F18
secondary
#513D86
accent
#4BDD73
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #404F18

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

Preview Lab → · Contrast checker → · Palette generator →

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