#40420F#40420F

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

Color values

HEX#40420F
RGBrgb(64, 66, 15)
HSLhsl(62, 63%, 16%)
HSVhsv(62, 77%, 26%)
CMYKcmyk(3%, 0%, 77.3%, 74.1%)
CIE-LABlab(26.79, -8.41, 29.25)
CIE-LCHlch(26.79, 30.43, 106.04°)
OKLaboklab(36.6% -0.0259 0.0654)
OKLCHoklch(36.6% 0.07 111.6)
XYZxyz(4.1489, 5.0210, 1.2024)
Luminance0.0502 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40420F #110F42
analogous
#422A0F #40420F #26420F
triadic
#40420F #0F4042 #420F40
tetradic
#40420F #0F422A #110F42 #420F26
square
#40420F #0F422A #110F42 #420F26
split-complementary
#40420F #0F2642 #2A0F42
monochromatic
#181906 #181906 #40420F #70741A #A1A626

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #40420f;
/* rgb */ color: rgb(64, 66, 15);
/* oklch */ color: oklch(36.6% 0.070 111.6);
Tailwind
colors: {
  custom: {
    50: '#777651',
    500: '#40420f',
    950: '#000000',
  },
}
SCSS
$custom: #40420f;
$custom-light: #777651;
$custom-dark: #000000;
JSON
{
  "hex": "#40420f",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 62.353,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.36603,
    "c": 0.07032,
    "h": 111.6
  },
  "luminance": 0.05021
}

Semantic roles & 50–950 ramp

primary
#40420F
secondary
#33307C
accent
#42E648
background
#F7F7F4
surface
#EDEDE7
border
#C8C8C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #40420F

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

Preview Lab → · Contrast checker → · Palette generator →

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