#D12CC5#D12CC5

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

Color values

HEX#D12CC5
RGBrgb(209, 44, 197)
HSLhsl(304, 65%, 50%)
HSVhsv(304, 79%, 82%)
CMYKcmyk(0%, 78.9%, 5.7%, 18%)
CIE-LABlab(51.14, 76.58, -43.13)
CIE-LCHlch(51.14, 87.88, 330.61°)
OKLaboklab(61.2% 0.2191 -0.1189)
OKLCHoklch(61.2% 0.249 331.5)
XYZxyz(37.2733, 19.3910, 54.5922)
Luminance0.1939 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D12CC5 #2CD138
analogous
#8B2CD1 #D12CC5 #D12C72
triadic
#D12CC5 #C5D12C #2CC5D1
tetradic
#D12CC5 #D18B2C #2CD138 #2C72D1
square
#D12CC5 #D18B2C #2CD138 #2C72D1
split-complementary
#D12CC5 #72D12C #2CD18B
monochromatic
#6C1766 #9E2195 #D12CC5 #DD5DD4 #E890E1

Accessibility & contrast

On white

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

On black

4.88
#D12CC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D12CC5
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D12CC5#FFFFFF#000000##000000
##D12CC51.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#186BC9
Deuteranopia (green-blind)
#6482C1
Tritanopia (blue-blind)
#DA4379
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d12cc5;
/* rgb */ color: rgb(209, 44, 197);
/* oklch */ color: oklch(61.2% 0.249 331.5);
Tailwind
colors: {
  custom: {
    50: '#e379d7',
    500: '#d12cc5',
    950: '#000000',
  },
}
SCSS
$custom: #d12cc5;
$custom-light: #e379d7;
$custom-dark: #000000;
JSON
{
  "hex": "#d12cc5",
  "rgb": {
    "r": 209,
    "g": 44,
    "b": 197
  },
  "hsl": {
    "h": 304.364,
    "s": 65.217,
    "l": 49.608
  },
  "oklch": {
    "l": 0.61201,
    "c": 0.24927,
    "h": 331.5
  },
  "luminance": 0.19388
}

Semantic roles & 50–950 ramp

primary
#D12CC5
secondary
#87D28C
accent
#E84C40
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #D12CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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