#404F12#404F12

#404F12 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 40.1% C 0.086 H 122.4°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#404F12
RGBrgb(64, 79, 18)
HSLhsl(75, 63%, 19%)
HSVhsv(75, 77%, 31%)
CMYKcmyk(19%, 0%, 77.2%, 69%)
CIE-LABlab(31.17, -15.74, 32.29)
CIE-LCHlch(31.17, 35.92, 116.00°)
OKLaboklab(40.13% -0.0459 0.0723)
OKLCHoklch(40.13% 0.086 122.4)
XYZxyz(5.0196, 6.7256, 1.6059)
Luminance0.0673 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404F12 #21124F
analogous
#4F4012 #404F12 #224F12
triadic
#404F12 #12404F #4F1240
tetradic
#404F12 #124F40 #21124F #4F1222
square
#404F12 #124F40 #21124F #4F1222
split-complementary
#404F12 #12224F #40124F
monochromatic
#141906 #181D07 #404F12 #68811D #91B329

Accessibility & contrast

On white

8.95
#404F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404F12
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404F12#FFFFFF#000000##FFFFFF
##404F121.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A08
Deuteranopia (green-blind)
#524917
Tritanopia (blue-blind)
#444B43
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #404f12;
/* rgb */ color: rgb(64, 79, 18);
/* oklch */ color: oklch(40.1% 0.086 122.4);
Tailwind
colors: {
  custom: {
    50: '#778054',
    500: '#404f12',
    950: '#000000',
  },
}
SCSS
$custom: #404f12;
$custom-light: #778054;
$custom-dark: #000000;
JSON
{
  "hex": "#404f12",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 74.754,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.4013,
    "c": 0.08569,
    "h": 122.4
  },
  "luminance": 0.06726
}

Semantic roles & 50–950 ramp

primary
#404F12
secondary
#493588
accent
#42E66A
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #404F12

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

Preview Lab → · Contrast checker → · Palette generator →

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