#404912#404912

#404912 is a dark, moderate yellow. Relative luminance 0.059; OKLCH L 38.5% C 0.077 H 118.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#404912
RGBrgb(64, 73, 18)
HSLhsl(70, 60%, 18%)
HSVhsv(70, 75%, 29%)
CMYKcmyk(12.3%, 0%, 75.3%, 71.4%)
CIE-LABlab(29.16, -12.34, 30.25)
CIE-LCHlch(29.16, 32.67, 112.20°)
OKLaboklab(38.5% -0.0365 0.0681)
OKLCHoklch(38.5% 0.077 118.2)
XYZxyz(4.6062, 5.8988, 1.4681)
Luminance0.0590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404912 #1B1249
analogous
#493612 #404912 #244912
triadic
#404912 #124049 #491240
tetradic
#404912 #124936 #1B1249 #491224
square
#404912 #124936 #1B1249 #491224
split-complementary
#404912 #122449 #361249
monochromatic
#161906 #161906 #404912 #6B7A1E #96AB2A

Accessibility & contrast

On white

9.63
#404912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#404912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404912
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404912#FFFFFF#000000##FFFFFF
##4049121.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E450A
Deuteranopia (green-blind)
#4D4516
Tritanopia (blue-blind)
#44453E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #404912;
/* rgb */ color: rgb(64, 73, 18);
/* oklch */ color: oklch(38.5% 0.077 118.2);
Tailwind
colors: {
  custom: {
    50: '#777b54',
    500: '#404912',
    950: '#000000',
  },
}
SCSS
$custom: #404912;
$custom-light: #777b54;
$custom-dark: #000000;
JSON
{
  "hex": "#404912",
  "rgb": {
    "r": 64,
    "g": 73,
    "b": 18
  },
  "hsl": {
    "h": 69.818,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.38504,
    "c": 0.07725,
    "h": 118.2
  },
  "luminance": 0.05899
}

Semantic roles & 50–950 ramp

primary
#404912
secondary
#413582
accent
#44E45E
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090903
muted
#7B7B78

Preview Lab

Preview with #404912

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

Preview Lab → · Contrast checker → · Palette generator →

#404912 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva