#D12CC4#D12CC4

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

Color values

HEX#D12CC4
RGBrgb(209, 44, 196)
HSLhsl(305, 65%, 50%)
HSVhsv(305, 79%, 82%)
CMYKcmyk(0%, 78.9%, 6.2%, 18%)
CIE-LABlab(51.09, 76.43, -42.63)
CIE-LCHlch(51.09, 87.51, 330.85°)
OKLaboklab(61.15% 0.2191 -0.1175)
OKLCHoklch(61.15% 0.249 331.8)
XYZxyz(37.1591, 19.3453, 53.9908)
Luminance0.1934 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D12CC4 #2CD139
analogous
#8B2CD1 #D12CC4 #D12C72
triadic
#D12CC4 #C4D12C #2CC4D1
tetradic
#D12CC4 #D18B2C #2CD139 #2C72D1
square
#D12CC4 #D18B2C #2CD139 #2C72D1
split-complementary
#D12CC4 #72D12C #2CD18B
monochromatic
#6C1765 #9E2195 #D12CC4 #DD5DD3 #E890E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D12CC4#FFFFFF#000000##000000
##D12CC41.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)
#1A6BC8
Deuteranopia (green-blind)
#6582C0
Tritanopia (blue-blind)
#DA4278
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d12cc4;
/* rgb */ color: rgb(209, 44, 196);
/* oklch */ color: oklch(61.1% 0.249 331.8);
Tailwind
colors: {
  custom: {
    50: '#e379d6',
    500: '#d12cc4',
    950: '#000000',
  },
}
SCSS
$custom: #d12cc4;
$custom-light: #e379d6;
$custom-dark: #000000;
JSON
{
  "hex": "#d12cc4",
  "rgb": {
    "r": 209,
    "g": 44,
    "b": 196
  },
  "hsl": {
    "h": 304.727,
    "s": 65.217,
    "l": 49.608
  },
  "oklch": {
    "l": 0.61146,
    "c": 0.2486,
    "h": 331.8
  },
  "luminance": 0.19342
}

Semantic roles & 50–950 ramp

primary
#D12CC4
secondary
#87D28D
accent
#E84D40
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #D12CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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