#40042A#40042A

#40042A is a dark, moderate pink. Relative luminance 0.013; OKLCH L 25.1% C 0.098 H 347.8°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#40042A
RGBrgb(64, 4, 42)
HSLhsl(322, 88%, 13%)
HSVhsv(322, 94%, 25%)
CMYKcmyk(0%, 93.8%, 34.4%, 74.9%)
CIE-LABlab(11.58, 31.30, -7.84)
CIE-LCHlch(11.58, 32.27, 345.93°)
OKLaboklab(25.08% 0.0957 -0.0207)
OKLCHoklch(25.08% 0.098 347.8)
XYZxyz(2.5758, 1.3443, 2.3139)
Luminance0.0134 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40042A #04401A
analogous
#380440 #40042A #40040C
triadic
#40042A #2A4004 #042A40
tetradic
#40042A #403804 #04401A #040C40
square
#40042A #403804 #04401A #040C40
split-complementary
#40042A #0C4004 #044038
monochromatic
#1D0213 #1D0213 #40042A #7A0850 #B30B76

Accessibility & contrast

On white

16.55
#40042A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#40042A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40042A
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40042A#FFFFFF#000000##FFFFFF
##40042A1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E182B
Deuteranopia (green-blind)
#202229
Tritanopia (blue-blind)
#450216
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40042a;
/* rgb */ color: rgb(64, 4, 42);
/* oklch */ color: oklch(25.1% 0.098 347.8);
Tailwind
colors: {
  custom: {
    50: '#784d63',
    500: '#40042a',
    950: '#000000',
  },
}
SCSS
$custom: #40042a;
$custom-light: #784d63;
$custom-dark: #000000;
JSON
{
  "hex": "#40042a",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 42
  },
  "hsl": {
    "h": 322,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.25081,
    "c": 0.09794,
    "h": 347.8
  },
  "luminance": 0.01344
}

Semantic roles & 50–950 ramp

primary
#40042A
secondary
#1F8143
accent
#FE7829
background
#F7F4F5
surface
#EEE7EA
border
#C9C3C6
text
#090105
muted
#7B7779

Preview Lab

Preview with #40042A

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

Preview Lab → · Contrast checker → · Palette generator →

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