#404212#404212

#404212 is a dark, moderate yellow. Relative luminance 0.050; OKLCH L 36.6% C 0.068 H 111.6°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#404212
RGBrgb(64, 66, 18)
HSLhsl(63, 57%, 16%)
HSVhsv(63, 73%, 26%)
CMYKcmyk(3%, 0%, 72.7%, 74.1%)
CIE-LABlab(26.82, -8.20, 27.85)
CIE-LCHlch(26.82, 29.03, 106.40°)
OKLaboklab(36.63% -0.0249 0.063)
OKLCHoklch(36.63% 0.068 111.6)
XYZxyz(4.1719, 5.0302, 1.3233)
Luminance0.0503 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404212 #141242
analogous
#422C12 #404212 #284212
triadic
#404212 #124042 #421240
tetradic
#404212 #12422C #141242 #421228
square
#404212 #12422C #141242 #421228
split-complementary
#404212 #122842 #2C1242
monochromatic
#171807 #171807 #404212 #6F721F #9DA22C

Accessibility & contrast

On white

10.47
#404212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#404212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404212
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404212#FFFFFF#000000##FFFFFF
##4042121.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F0C
Deuteranopia (green-blind)
#484015
Tritanopia (blue-blind)
#453E38
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #404212;
/* rgb */ color: rgb(64, 66, 18);
/* oklch */ color: oklch(36.6% 0.068 111.6);
Tailwind
colors: {
  custom: {
    50: '#777653',
    500: '#404212',
    950: '#000000',
  },
}
SCSS
$custom: #404212;
$custom-light: #777653;
$custom-dark: #000000;
JSON
{
  "hex": "#404212",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 18
  },
  "hsl": {
    "h": 62.5,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.36632,
    "c": 0.06776,
    "h": 111.6
  },
  "luminance": 0.0503
}

Semantic roles & 50–950 ramp

primary
#404212
secondary
#38357B
accent
#47E04E
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #404212

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

Preview Lab → · Contrast checker → · Palette generator →

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