#404C12#404C12

#404C12 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.3% C 0.081 H 120.5°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#404C12
RGBrgb(64, 76, 18)
HSLhsl(72, 62%, 18%)
HSVhsv(72, 76%, 30%)
CMYKcmyk(15.8%, 0%, 76.3%, 70.2%)
CIE-LABlab(30.16, -14.06, 31.27)
CIE-LCHlch(30.16, 34.29, 114.21°)
OKLaboklab(39.32% -0.0413 0.0702)
OKLCHoklch(39.32% 0.081 120.5)
XYZxyz(4.8081, 6.3026, 1.5354)
Luminance0.0630 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404C12 #1E124C
analogous
#4C3B12 #404C12 #234C12
triadic
#404C12 #12404C #4C1240
tetradic
#404C12 #124C3B #1E124C #4C1223
square
#404C12 #124C3B #1E124C #4C1223
split-complementary
#404C12 #12234C #3B124C
monochromatic
#151906 #161B06 #404C12 #6A7D1E #93AF29

Accessibility & contrast

On white

9.29
#404C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#404C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404C12
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404C12#FFFFFF#000000##FFFFFF
##404C121.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514709
Deuteranopia (green-blind)
#504717
Tritanopia (blue-blind)
#444840
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #404c12;
/* rgb */ color: rgb(64, 76, 18);
/* oklch */ color: oklch(39.3% 0.081 120.5);
Tailwind
colors: {
  custom: {
    50: '#777e54',
    500: '#404c12',
    950: '#000000',
  },
}
SCSS
$custom: #404c12;
$custom-light: #777e54;
$custom-dark: #000000;
JSON
{
  "hex": "#404c12",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 72.414,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.39315,
    "c": 0.08145,
    "h": 120.5
  },
  "luminance": 0.06303
}

Semantic roles & 50–950 ramp

primary
#404C12
secondary
#453585
accent
#43E564
background
#F7F7F4
surface
#EDEEE8
border
#C8C9C4
text
#090903
muted
#7B7B78

Preview Lab

Preview with #404C12

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

Preview Lab → · Contrast checker → · Palette generator →

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