#D42CBA#D42CBA

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

Color values

HEX#D42CBA
RGBrgb(212, 44, 186)
HSLhsl(309, 66%, 50%)
HSVhsv(309, 79%, 83%)
CMYKcmyk(0%, 79.2%, 12.3%, 16.9%)
CIE-LABlab(51.09, 75.62, -36.79)
CIE-LCHlch(51.09, 84.09, 334.06°)
OKLaboklab(61.08% 0.2216 -0.1006)
OKLCHoklch(61.08% 0.243 335.6)
XYZxyz(36.9156, 19.3470, 48.2350)
Luminance0.1934 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42CBA #2CD446
analogous
#9A2CD4 #D42CBA #D42C66
triadic
#D42CBA #BAD42C #2CBAD4
tetradic
#D42CBA #D49A2C #2CD446 #2C66D4
square
#D42CBA #D49A2C #2CD446 #2C66D4
split-complementary
#D42CBA #66D42C #2CD49A
monochromatic
#6F1761 #A2218E #D42CBA #DE5FCB #E992DB

Accessibility & contrast

On white

4.31
#D42CBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#D42CBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42CBA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42CBA#FFFFFF#000000##000000
##D42CBA1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d42cba;
/* rgb */ color: rgb(212, 44, 186);
/* oklch */ color: oklch(61.1% 0.243 335.6);
Tailwind
colors: {
  custom: {
    50: '#e679cf',
    500: '#d42cba',
    950: '#000000',
  },
}
SCSS
$custom: #d42cba;
$custom-light: #e679cf;
$custom-dark: #000000;
JSON
{
  "hex": "#d42cba",
  "rgb": {
    "r": 212,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 309.286,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.61079,
    "c": 0.24335,
    "h": 335.6
  },
  "luminance": 0.19344
}

Semantic roles & 50–950 ramp

primary
#D42CBA
secondary
#88D394
accent
#E9593F
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160A14
muted
#847C82

Preview Lab

Preview with #D42CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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