#404E12#404E12

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

Color values

HEX#404E12
RGBrgb(64, 78, 18)
HSLhsl(74, 63%, 19%)
HSVhsv(74, 77%, 31%)
CMYKcmyk(17.9%, 0%, 76.9%, 69.4%)
CIE-LABlab(30.84, -15.19, 31.95)
CIE-LCHlch(30.84, 35.38, 115.42°)
OKLaboklab(39.86% -0.0444 0.0716)
OKLCHoklch(39.86% 0.084 121.8)
XYZxyz(4.9480, 6.5824, 1.5820)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404E12 #20124E
analogous
#4E3E12 #404E12 #224E12
triadic
#404E12 #12404E #4E1240
tetradic
#404E12 #124E3E #20124E #4E1222
square
#404E12 #124E3E #20124E #4E1222
split-complementary
#404E12 #12224E #3E124E
monochromatic
#141906 #171C07 #404E12 #69801D #92B129

Accessibility & contrast

On white

9.07
#404E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404E12
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404E12#FFFFFF#000000##FFFFFF
##404E121.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534908
Deuteranopia (green-blind)
#514917
Tritanopia (blue-blind)
#444A42
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #404e12;
/* rgb */ color: rgb(64, 78, 18);
/* oklch */ color: oklch(39.9% 0.084 121.8);
Tailwind
colors: {
  custom: {
    50: '#777f54',
    500: '#404e12',
    950: '#000000',
  },
}
SCSS
$custom: #404e12;
$custom-light: #777f54;
$custom-dark: #000000;
JSON
{
  "hex": "#404e12",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 74,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.39858,
    "c": 0.08428,
    "h": 121.8
  },
  "luminance": 0.06582
}

Semantic roles & 50–950 ramp

primary
#404E12
secondary
#483587
accent
#42E668
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #404E12

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

Preview Lab → · Contrast checker → · Palette generator →

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