#40422A#40422A

#40422A is a dark, muted yellow. Relative luminance 0.052; OKLCH L 37.0% C 0.039 H 112.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#40422A
RGBrgb(64, 66, 42)
HSLhsl(65, 22%, 21%)
HSVhsv(65, 36%, 26%)
CMYKcmyk(3%, 0%, 36.4%, 74.1%)
CIE-LABlab(27.17, -5.45, 14.37)
CIE-LCHlch(27.17, 15.37, 110.77°)
OKLaboklab(37.02% -0.0145 0.0357)
OKLCHoklch(37.02% 0.039 112.2)
XYZxyz(4.4805, 5.1536, 2.9488)
Luminance0.0515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40422A #2C2A42
analogous
#42382A #40422A #34422A
triadic
#40422A #2A4042 #422A40
tetradic
#40422A #2A4238 #2C2A42 #422A34
square
#40422A #2A4238 #2C2A42 #422A34
split-complementary
#40422A #2A3442 #382A42
monochromatic
#12130C #1C1D12 #40422A #646742 #898D5A

Accessibility & contrast

On white

10.34
#40422A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#40422A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40422A
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40422A#FFFFFF#000000##FFFFFF
##40422A1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464028
Deuteranopia (green-blind)
#46412B
Tritanopia (blue-blind)
#433F3C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #40422a;
/* rgb */ color: rgb(64, 66, 42);
/* oklch */ color: oklch(37.0% 0.039 112.2);
Tailwind
colors: {
  custom: {
    50: '#757663',
    500: '#40422a',
    950: '#000000',
  },
}
SCSS
$custom: #40422a;
$custom-light: #757663;
$custom-dark: #000000;
JSON
{
  "hex": "#40422a",
  "rgb": {
    "r": 64,
    "g": 66,
    "b": 42
  },
  "hsl": {
    "h": 65,
    "s": 22.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.37022,
    "c": 0.03853,
    "h": 112.2
  },
  "luminance": 0.05154
}

Semantic roles & 50–950 ramp

primary
#40422A
secondary
#575473
accent
#69BF70
background
#F7F7F5
surface
#EDEDEA
border
#C8C8C6
text
#080805
muted
#7B7B79

Preview Lab

Preview with #40422A

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

Preview Lab → · Contrast checker → · Palette generator →

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