#40420C#40420C

#40420C 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#40420C
RGBrgb(64, 66, 12)
HSLhsl(62, 69%, 15%)
HSVhsv(62, 82%, 26%)
CMYKcmyk(3%, 0%, 81.8%, 74.1%)
CIE-LABlab(26.77, -8.59, 30.54)
CIE-LCHlch(26.77, 31.72, 105.72°)
OKLaboklab(36.58% -0.0268 0.0675)
OKLCHoklch(36.58% 0.073 111.6)
XYZxyz(4.1291, 5.0131, 1.0979)
Luminance0.0501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40420C #0E0C42
analogous
#42290C #40420C #25420C
triadic
#40420C #0C4042 #420C40
tetradic
#40420C #0C4229 #0E0C42 #420C25
square
#40420C #0C4229 #0E0C42 #420C25
split-complementary
#40420C #0C2542 #290C42
monochromatic
#191A05 #191A05 #40420C #727615 #A4AA1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40420C#FFFFFF#000000##FFFFFF
##40420C1.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)
#483F03
Deuteranopia (green-blind)
#484010
Tritanopia (blue-blind)
#453D38
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40420c;
/* rgb */ color: rgb(64, 66, 12);
/* oklch */ color: oklch(36.6% 0.073 111.6);
Tailwind
colors: {
  custom: {
    50: '#77764f',
    500: '#40420c',
    950: '#000000',
  },
}
SCSS
$custom: #40420c;
$custom-light: #77764f;
$custom-dark: #000000;
JSON
{
  "hex": "#40420c",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 62.222,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.36577,
    "c": 0.07259,
    "h": 111.6
  },
  "luminance": 0.05013
}

Semantic roles & 50–950 ramp

primary
#40420C
secondary
#2F2C7E
accent
#3CEC42
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #40420C

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

Preview Lab → · Contrast checker → · Palette generator →

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