#D12DCA#D12DCA

#D12DCA is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.5% C 0.252 H 330.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#D12DCA
RGBrgb(209, 45, 202)
HSLhsl(303, 65%, 50%)
HSVhsv(303, 78%, 82%)
CMYKcmyk(0%, 78.5%, 3.3%, 18%)
CIE-LABlab(51.50, 77.07, -45.45)
CIE-LCHlch(51.50, 89.47, 329.47°)
OKLaboklab(61.54% 0.2183 -0.1257)
OKLCHoklch(61.54% 0.252 330.1)
XYZxyz(37.8934, 19.6994, 57.6722)
Luminance0.1970 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D12DCA #2DD134
analogous
#862DD1 #D12DCA #D12D78
triadic
#D12DCA #CAD12D #2DCAD1
tetradic
#D12DCA #D1862D #2DD134 #2D78D1
square
#D12DCA #D1862D #2DD134 #2D78D1
split-complementary
#D12DCA #78D12D #2DD186
monochromatic
#6C1769 #9F2299 #D12DCA #DC5FD7 #E791E4

Accessibility & contrast

On white

4.25
#D12DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#D12DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D12DCA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D12DCA#FFFFFF#000000##000000
##D12DCA1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C6DCE
Deuteranopia (green-blind)
#6282C6
Tritanopia (blue-blind)
#D9467C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d12dca;
/* rgb */ color: rgb(209, 45, 202);
/* oklch */ color: oklch(61.5% 0.252 330.1);
Tailwind
colors: {
  custom: {
    50: '#e37adb',
    500: '#d12dca',
    950: '#000000',
  },
}
SCSS
$custom: #d12dca;
$custom-light: #e37adb;
$custom-dark: #000000;
JSON
{
  "hex": "#d12dca",
  "rgb": {
    "r": 209,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 302.561,
    "s": 64.567,
    "l": 49.804
  },
  "oklch": {
    "l": 0.6154,
    "c": 0.25191,
    "h": 330.1
  },
  "luminance": 0.19696
}

Semantic roles & 50–950 ramp

primary
#D12DCA
secondary
#88D28B
accent
#E84740
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #D12DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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