#404A12#404A12

#404A12 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.8% C 0.079 H 119.0°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#404A12
RGBrgb(64, 74, 18)
HSLhsl(71, 61%, 18%)
HSVhsv(71, 76%, 29%)
CMYKcmyk(13.5%, 0%, 75.7%, 71%)
CIE-LABlab(29.49, -12.92, 30.59)
CIE-LCHlch(29.49, 33.21, 112.90°)
OKLaboklab(38.77% -0.0381 0.0688)
OKLCHoklch(38.77% 0.079 119)
XYZxyz(4.6724, 6.0313, 1.4902)
Luminance0.0603 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404A12 #1C124A
analogous
#4A3812 #404A12 #244A12
triadic
#404A12 #12404A #4A1240
tetradic
#404A12 #124A38 #1C124A #4A1224
square
#404A12 #124A38 #1C124A #4A1224
split-complementary
#404A12 #12244A #38124A
monochromatic
#151906 #151906 #404A12 #6B7B1E #95AC2A

Accessibility & contrast

On white

9.52
#404A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#404A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404A12
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404A12#FFFFFF#000000##FFFFFF
##404A121.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4509
Deuteranopia (green-blind)
#4E4616
Tritanopia (blue-blind)
#44463F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #404a12;
/* rgb */ color: rgb(64, 74, 18);
/* oklch */ color: oklch(38.8% 0.079 119.0);
Tailwind
colors: {
  custom: {
    50: '#777c54',
    500: '#404a12',
    950: '#000000',
  },
}
SCSS
$custom: #404a12;
$custom-light: #777c54;
$custom-dark: #000000;
JSON
{
  "hex": "#404a12",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 18
  },
  "hsl": {
    "h": 70.714,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.38774,
    "c": 0.07865,
    "h": 119
  },
  "luminance": 0.06031
}

Semantic roles & 50–950 ramp

primary
#404A12
secondary
#433583
accent
#44E460
background
#F7F7F4
surface
#EDEEE8
border
#C8C9C4
text
#090903
muted
#7B7B78

Preview Lab

Preview with #404A12

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

Preview Lab → · Contrast checker → · Palette generator →

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