#D12CC2#D12CC2

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

Color values

HEX#D12CC2
RGBrgb(209, 44, 194)
HSLhsl(305, 65%, 50%)
HSVhsv(305, 79%, 82%)
CMYKcmyk(0%, 78.9%, 7.2%, 18%)
CIE-LABlab(50.98, 76.14, -41.64)
CIE-LCHlch(50.98, 86.78, 331.33°)
OKLaboklab(61.04% 0.2191 -0.1146)
OKLCHoklch(61.04% 0.247 332.4)
XYZxyz(36.9329, 19.2549, 52.7999)
Luminance0.1925 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D12CC2 #2CD13B
analogous
#8E2CD1 #D12CC2 #D12C6F
triadic
#D12CC2 #C2D12C #2CC2D1
tetradic
#D12CC2 #D18E2C #2CD13B #2C6FD1
square
#D12CC2 #D18E2C #2CD13B #2C6FD1
split-complementary
#D12CC2 #6FD12C #2CD18E
monochromatic
#6C1764 #9E2193 #D12CC2 #DD5DD1 #E890E0

Accessibility & contrast

On white

4.33
#D12CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#D12CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D12CC2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D12CC2#FFFFFF#000000##000000
##D12CC21.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E6BC6
Deuteranopia (green-blind)
#6681BE
Tritanopia (blue-blind)
#DA4177
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d12cc2;
/* rgb */ color: rgb(209, 44, 194);
/* oklch */ color: oklch(61.0% 0.247 332.4);
Tailwind
colors: {
  custom: {
    50: '#e379d5',
    500: '#d12cc2',
    950: '#000000',
  },
}
SCSS
$custom: #d12cc2;
$custom-light: #e379d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d12cc2",
  "rgb": {
    "r": 209,
    "g": 44,
    "b": 194
  },
  "hsl": {
    "h": 305.455,
    "s": 65.217,
    "l": 49.608
  },
  "oklch": {
    "l": 0.61038,
    "c": 0.24723,
    "h": 332.4
  },
  "luminance": 0.19252
}

Semantic roles & 50–950 ramp

primary
#D12CC2
secondary
#87D28E
accent
#E84F40
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #D12CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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