#40420D#40420D

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

Color values

HEX#40420D
RGBrgb(64, 66, 13)
HSLhsl(62, 67%, 15%)
HSVhsv(62, 80%, 26%)
CMYKcmyk(3%, 0%, 80.3%, 74.1%)
CIE-LABlab(26.78, -8.54, 30.12)
CIE-LCHlch(26.78, 31.31, 105.82°)
OKLaboklab(36.59% -0.0265 0.0668)
OKLCHoklch(36.59% 0.072 111.6)
XYZxyz(4.1353, 5.0156, 1.1310)
Luminance0.0502 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40420D #0F0D42
analogous
#42290D #40420D #25420D
triadic
#40420D #0D4042 #420D40
tetradic
#40420D #0D4229 #0F0D42 #420D25
square
#40420D #0D4229 #0F0D42 #420D25
split-complementary
#40420D #0D2542 #290D42
monochromatic
#191A05 #191A05 #40420D #727517 #A3A821

Accessibility & contrast

On white

10.48
#40420D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#40420D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40420D
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40420D#FFFFFF#000000##FFFFFF
##40420D1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F05
Deuteranopia (green-blind)
#484011
Tritanopia (blue-blind)
#453D38
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40420d;
/* rgb */ color: rgb(64, 66, 13);
/* oklch */ color: oklch(36.6% 0.072 111.6);
Tailwind
colors: {
  custom: {
    50: '#777650',
    500: '#40420d',
    950: '#000000',
  },
}
SCSS
$custom: #40420d;
$custom-light: #777650;
$custom-dark: #000000;
JSON
{
  "hex": "#40420d",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 13
  },
  "hsl": {
    "h": 62.264,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.36585,
    "c": 0.07187,
    "h": 111.6
  },
  "luminance": 0.05015
}

Semantic roles & 50–950 ramp

primary
#40420D
secondary
#302D7E
accent
#3EEA44
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #40420D

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

Preview Lab → · Contrast checker → · Palette generator →

#40420D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva