#40052A#40052A

#40052A is a dark, moderate pink. Relative luminance 0.014; OKLCH L 25.2% C 0.097 H 348.0°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#40052A
RGBrgb(64, 5, 42)
HSLhsl(322, 86%, 14%)
HSVhsv(322, 92%, 25%)
CMYKcmyk(0%, 92.2%, 34.4%, 74.9%)
CIE-LABlab(11.73, 30.87, -7.62)
CIE-LCHlch(11.73, 31.80, 346.14°)
OKLaboklab(25.19% 0.0944 -0.0201)
OKLCHoklch(25.19% 0.097 348)
XYZxyz(2.5867, 1.3660, 2.3175)
Luminance0.0137 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40052A #05401B
analogous
#380540 #40052A #40050C
triadic
#40052A #2A4005 #052A40
tetradic
#40052A #403805 #05401B #050C40
square
#40052A #403805 #05401B #050C40
split-complementary
#40052A #0C4005 #054038
monochromatic
#1C0213 #1C0213 #40052A #79094F #B20E75

Accessibility & contrast

On white

16.49
#40052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40052A
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40052A#FFFFFF#000000##FFFFFF
##40052A1.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F182B
Deuteranopia (green-blind)
#212329
Tritanopia (blue-blind)
#450317
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #40052a;
/* rgb */ color: rgb(64, 5, 42);
/* oklch */ color: oklch(25.2% 0.097 348.0);
Tailwind
colors: {
  custom: {
    50: '#784d63',
    500: '#40052a',
    950: '#000000',
  },
}
SCSS
$custom: #40052a;
$custom-light: #784d63;
$custom-dark: #000000;
JSON
{
  "hex": "#40052a",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 322.373,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.25188,
    "c": 0.0965,
    "h": 348
  },
  "luminance": 0.01366
}

Semantic roles & 50–950 ramp

primary
#40052A
secondary
#208144
accent
#FC7A2C
background
#F7F4F5
surface
#EEE7EA
border
#C9C3C6
text
#090205
muted
#7B7879

Preview Lab

Preview with #40052A

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

Preview Lab → · Contrast checker → · Palette generator →

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