#404D12#404D12

#404D12 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.6% C 0.083 H 121.1°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#404D12
RGBrgb(64, 77, 18)
HSLhsl(73, 62%, 19%)
HSVhsv(73, 77%, 30%)
CMYKcmyk(16.9%, 0%, 76.6%, 69.8%)
CIE-LABlab(30.50, -14.63, 31.61)
CIE-LCHlch(30.50, 34.83, 114.83°)
OKLaboklab(39.59% -0.0428 0.0709)
OKLCHoklch(39.59% 0.083 121.1)
XYZxyz(4.8775, 6.4414, 1.5585)
Luminance0.0644 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404D12 #1F124D
analogous
#4D3C12 #404D12 #224D12
triadic
#404D12 #12404D #4D1240
tetradic
#404D12 #124D3C #1F124D #4D1222
square
#404D12 #124D3C #1F124D #4D1222
split-complementary
#404D12 #12224D #3C124D
monochromatic
#151906 #171B06 #404D12 #697F1E #92B029

Accessibility & contrast

On white

9.18
#404D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404D12
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404D12#FFFFFF#000000##FFFFFF
##404D121.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524809
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#444941
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #404d12;
/* rgb */ color: rgb(64, 77, 18);
/* oklch */ color: oklch(39.6% 0.083 121.1);
Tailwind
colors: {
  custom: {
    50: '#777e54',
    500: '#404d12',
    950: '#000000',
  },
}
SCSS
$custom: #404d12;
$custom-light: #777e54;
$custom-dark: #000000;
JSON
{
  "hex": "#404d12",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 18
  },
  "hsl": {
    "h": 73.22,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.39586,
    "c": 0.08287,
    "h": 121.1
  },
  "luminance": 0.06441
}

Semantic roles & 50–950 ramp

primary
#404D12
secondary
#473586
accent
#43E566
background
#F7F7F5
surface
#EDEEE8
border
#C8C9C4
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #404D12

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

Preview Lab → · Contrast checker → · Palette generator →

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