#404012#404012

#404012 is a dark, moderate yellow. Relative luminance 0.048; OKLCH L 36.1% C 0.065 H 109.3°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#404012
RGBrgb(64, 64, 18)
HSLhsl(60, 56%, 16%)
HSVhsv(60, 72%, 25%)
CMYKcmyk(0%, 0%, 71.9%, 74.9%)
CIE-LABlab(26.16, -6.98, 27.15)
CIE-LCHlch(26.16, 28.04, 104.41°)
OKLaboklab(36.1% -0.0215 0.0615)
OKLCHoklch(36.1% 0.065 109.3)
XYZxyz(4.0571, 4.8006, 1.2850)
Luminance0.0480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404012 #121240
analogous
#402912 #404012 #294012
triadic
#404012 #124040 #401240
tetradic
#404012 #124029 #121240 #401229
square
#404012 #124029 #121240 #401229
split-complementary
#404012 #122940 #291240
monochromatic
#181807 #181807 #404012 #70701F #A0A02D

Accessibility & contrast

On white

10.71
#404012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#404012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404012
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404012#FFFFFF#000000##FFFFFF
##4040121.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D0C
Deuteranopia (green-blind)
#463F15
Tritanopia (blue-blind)
#453C36
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #404012;
/* rgb */ color: rgb(64, 64, 18);
/* oklch */ color: oklch(36.1% 0.065 109.3);
Tailwind
colors: {
  custom: {
    50: '#777452',
    500: '#404012',
    950: '#000000',
  },
}
SCSS
$custom: #404012;
$custom-light: #777452;
$custom-dark: #000000;
JSON
{
  "hex": "#404012",
  "rgb": {
    "r": 64,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 60,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.36103,
    "c": 0.06519,
    "h": 109.3
  },
  "luminance": 0.048
}

Semantic roles & 50–950 ramp

primary
#404012
secondary
#353579
accent
#48DF48
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #404012

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

Preview Lab → · Contrast checker → · Palette generator →

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