#D42CBC#D42CBC

#D42CBC is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 61.2% C 0.245 H 335.0°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#D42CBC
RGBrgb(212, 44, 188)
HSLhsl(309, 66%, 50%)
HSVhsv(309, 79%, 83%)
CMYKcmyk(0%, 79.2%, 11.3%, 16.9%)
CIE-LABlab(51.19, 75.90, -37.80)
CIE-LCHlch(51.19, 84.79, 333.53°)
OKLaboklab(61.18% 0.2217 -0.1035)
OKLCHoklch(61.18% 0.245 335)
XYZxyz(37.1297, 19.4327, 49.3626)
Luminance0.1943 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42CBC #2CD444
analogous
#982CD4 #D42CBC #D42C68
triadic
#D42CBC #BCD42C #2CBCD4
tetradic
#D42CBC #D4982C #2CD444 #2C68D4
square
#D42CBC #D4982C #2CD444 #2C68D4
split-complementary
#D42CBC #68D42C #2CD498
monochromatic
#6F1762 #A2218F #D42CBC #DE5FCC #E992DC

Accessibility & contrast

On white

4.30
#D42CBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#D42CBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42CBC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42CBC#FFFFFF#000000##000000
##D42CBC1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B6AC0
Deuteranopia (green-blind)
#6C83B8
Tritanopia (blue-blind)
#DF3D74
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d42cbc;
/* rgb */ color: rgb(212, 44, 188);
/* oklch */ color: oklch(61.2% 0.245 335.0);
Tailwind
colors: {
  custom: {
    50: '#e679d0',
    500: '#d42cbc',
    950: '#000000',
  },
}
SCSS
$custom: #d42cbc;
$custom-light: #e679d0;
$custom-dark: #000000;
JSON
{
  "hex": "#d42cbc",
  "rgb": {
    "r": 212,
    "g": 44,
    "b": 188
  },
  "hsl": {
    "h": 308.571,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.61182,
    "c": 0.24466,
    "h": 335
  },
  "luminance": 0.19429
}

Semantic roles & 50–950 ramp

primary
#D42CBC
secondary
#88D393
accent
#E9573F
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160A14
muted
#847C82

Preview Lab

Preview with #D42CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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