#40420B#40420B

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

Color values

HEX#40420B
RGBrgb(64, 66, 11)
HSLhsl(62, 71%, 15%)
HSVhsv(62, 83%, 26%)
CMYKcmyk(3%, 0%, 83.3%, 74.1%)
CIE-LABlab(26.77, -8.65, 30.94)
CIE-LCHlch(26.77, 32.13, 105.62°)
OKLaboklab(36.57% -0.027 0.0681)
OKLCHoklch(36.57% 0.073 111.6)
XYZxyz(4.1231, 5.0107, 1.0665)
Luminance0.0501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40420B #0D0B42
analogous
#42290B #40420B #24420B
triadic
#40420B #0B4042 #420B40
tetradic
#40420B #0B4229 #0D0B42 #420B24
square
#40420B #0B4229 #0D0B42 #420B24
split-complementary
#40420B #0B2442 #290B42
monochromatic
#191A04 #191A04 #40420B #737614 #A6AB1C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40420B#FFFFFF#000000##FFFFFF
##40420B1.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)
#483F02
Deuteranopia (green-blind)
#48400F
Tritanopia (blue-blind)
#453D38
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40420b;
/* rgb */ color: rgb(64, 66, 11);
/* oklch */ color: oklch(36.6% 0.073 111.6);
Tailwind
colors: {
  custom: {
    50: '#77764f',
    500: '#40420b',
    950: '#000000',
  },
}
SCSS
$custom: #40420b;
$custom-light: #77764f;
$custom-dark: #000000;
JSON
{
  "hex": "#40420b",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 11
  },
  "hsl": {
    "h": 62.182,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.3657,
    "c": 0.07328,
    "h": 111.6
  },
  "luminance": 0.05011
}

Semantic roles & 50–950 ramp

primary
#40420B
secondary
#2D2A7F
accent
#3AEE40
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #40420B

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

Preview Lab → · Contrast checker → · Palette generator →

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