#40420E#40420E

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

Color values

HEX#40420E
RGBrgb(64, 66, 14)
HSLhsl(62, 65%, 16%)
HSVhsv(62, 79%, 26%)
CMYKcmyk(3%, 0%, 78.8%, 74.1%)
CIE-LABlab(26.79, -8.47, 29.69)
CIE-LCHlch(26.79, 30.87, 105.93°)
OKLaboklab(36.59% -0.0262 0.0661)
OKLCHoklch(36.59% 0.071 111.6)
XYZxyz(4.1420, 5.0182, 1.1658)
Luminance0.0502 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40420E #100E42
analogous
#422A0E #40420E #26420E
triadic
#40420E #0E4042 #420E40
tetradic
#40420E #0E422A #100E42 #420E26
square
#40420E #0E422A #100E42 #420E26
split-complementary
#40420E #0E2642 #2A0E42
monochromatic
#181905 #181905 #40420E #717419 #A2A723

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40420E#FFFFFF#000000##FFFFFF
##40420E1.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)
#483F06
Deuteranopia (green-blind)
#484012
Tritanopia (blue-blind)
#453D38
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #40420e;
/* rgb */ color: rgb(64, 66, 14);
/* oklch */ color: oklch(36.6% 0.071 111.6);
Tailwind
colors: {
  custom: {
    50: '#777650',
    500: '#40420e',
    950: '#000000',
  },
}
SCSS
$custom: #40420e;
$custom-light: #777650;
$custom-dark: #000000;
JSON
{
  "hex": "#40420e",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 14
  },
  "hsl": {
    "h": 62.308,
    "s": 65,
    "l": 15.686
  },
  "oklch": {
    "l": 0.36594,
    "c": 0.07111,
    "h": 111.6
  },
  "luminance": 0.05018
}

Semantic roles & 50–950 ramp

primary
#40420E
secondary
#322F7D
accent
#40E846
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #40420E

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

Preview Lab → · Contrast checker → · Palette generator →

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