#40420A#40420A

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

Color values

HEX#40420A
RGBrgb(64, 66, 10)
HSLhsl(62, 74%, 15%)
HSVhsv(62, 85%, 26%)
CMYKcmyk(3%, 0%, 84.8%, 74.1%)
CIE-LABlab(26.76, -8.70, 31.33)
CIE-LCHlch(26.76, 32.52, 105.52°)
OKLaboklab(36.56% -0.0273 0.0687)
OKLCHoklch(36.56% 0.074 111.6)
XYZxyz(4.1175, 5.0084, 1.0369)
Luminance0.0501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40420A #0C0A42
analogous
#42280A #40420A #24420A
triadic
#40420A #0A4042 #420A40
tetradic
#40420A #0A4228 #0C0A42 #420A24
square
#40420A #0A4228 #0C0A42 #420A24
split-complementary
#40420A #0A2442 #280A42
monochromatic
#1A1B04 #1A1B04 #40420A #747712 #A7AC1A

Accessibility & contrast

On white

10.49
#40420A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40420A
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40420A#FFFFFF#000000##FFFFFF
##40420A1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F01
Deuteranopia (green-blind)
#48400F
Tritanopia (blue-blind)
#453D37
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40420a;
/* rgb */ color: rgb(64, 66, 10);
/* oklch */ color: oklch(36.6% 0.074 111.6);
Tailwind
colors: {
  custom: {
    50: '#77764e',
    500: '#40420a',
    950: '#000000',
  },
}
SCSS
$custom: #40420a;
$custom-light: #77764e;
$custom-dark: #000000;
JSON
{
  "hex": "#40420a",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 10
  },
  "hsl": {
    "h": 62.143,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.36563,
    "c": 0.07394,
    "h": 111.6
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#40420A
secondary
#2C297F
accent
#37F03E
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #40420A

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

Preview Lab → · Contrast checker → · Palette generator →

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