#D42CB9#D42CB9

#D42CB9 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 61.0% C 0.243 H 335.9°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#D42CB9
RGBrgb(212, 44, 185)
HSLhsl(310, 66%, 50%)
HSVhsv(310, 79%, 83%)
CMYKcmyk(0%, 79.2%, 12.7%, 16.9%)
CIE-LABlab(51.04, 75.48, -36.28)
CIE-LCHlch(51.04, 83.75, 334.33°)
OKLaboklab(61.03% 0.2215 -0.0991)
OKLCHoklch(61.03% 0.243 335.9)
XYZxyz(36.8096, 19.3047, 47.6771)
Luminance0.1930 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42CB9 #2CD447
analogous
#9B2CD4 #D42CB9 #D42C65
triadic
#D42CB9 #B9D42C #2CB9D4
tetradic
#D42CB9 #D49B2C #2CD447 #2C65D4
square
#D42CB9 #D49B2C #2CD447 #2C65D4
split-complementary
#D42CB9 #65D42C #2CD49B
monochromatic
#6F1761 #A2218D #D42CB9 #DE5FCA #E992DB

Accessibility & contrast

On white

4.32
#D42CB9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#D42CB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42CB9
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42CB9#FFFFFF#000000##000000
##D42CB91.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E6ABD
Deuteranopia (green-blind)
#6D82B5
Tritanopia (blue-blind)
#DF3B72
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d42cb9;
/* rgb */ color: rgb(212, 44, 185);
/* oklch */ color: oklch(61.0% 0.243 335.9);
Tailwind
colors: {
  custom: {
    50: '#e679ce',
    500: '#d42cb9',
    950: '#000000',
  },
}
SCSS
$custom: #d42cb9;
$custom-light: #e679ce;
$custom-dark: #000000;
JSON
{
  "hex": "#d42cb9",
  "rgb": {
    "r": 212,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 309.643,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.61028,
    "c": 0.2427,
    "h": 335.9
  },
  "luminance": 0.19301
}

Semantic roles & 50–950 ramp

primary
#D42CB9
secondary
#88D394
accent
#E95A3F
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160A13
muted
#847C82

Preview Lab

Preview with #D42CB9

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

Preview Lab → · Contrast checker → · Palette generator →

#D42CB9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva