#D12CC7#D12CC7

#D12CC7 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.3% C 0.251 H 330.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#D12CC7
RGBrgb(209, 44, 199)
HSLhsl(304, 65%, 50%)
HSVhsv(304, 79%, 82%)
CMYKcmyk(0%, 78.9%, 4.8%, 18%)
CIE-LABlab(51.25, 76.87, -44.11)
CIE-LCHlch(51.25, 88.63, 330.15°)
OKLaboklab(61.31% 0.2191 -0.1218)
OKLCHoklch(61.31% 0.251 330.9)
XYZxyz(37.5039, 19.4833, 55.8072)
Luminance0.1948 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D12CC7 #2CD136
analogous
#882CD1 #D12CC7 #D12C75
triadic
#D12CC7 #C7D12C #2CC7D1
tetradic
#D12CC7 #D1882C #2CD136 #2C75D1
square
#D12CC7 #D1882C #2CD136 #2C75D1
split-complementary
#D12CC7 #75D12C #2CD188
monochromatic
#6C1767 #9E2197 #D12CC7 #DD5DD5 #E890E2

Accessibility & contrast

On white

4.29
#D12CC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#D12CC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D12CC7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D12CC7#FFFFFF#000000##000000
##D12CC71.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#136CCB
Deuteranopia (green-blind)
#6382C3
Tritanopia (blue-blind)
#D9447A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d12cc7;
/* rgb */ color: rgb(209, 44, 199);
/* oklch */ color: oklch(61.3% 0.251 330.9);
Tailwind
colors: {
  custom: {
    50: '#e379d8',
    500: '#d12cc7',
    950: '#000000',
  },
}
SCSS
$custom: #d12cc7;
$custom-light: #e379d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d12cc7",
  "rgb": {
    "r": 209,
    "g": 44,
    "b": 199
  },
  "hsl": {
    "h": 303.636,
    "s": 65.217,
    "l": 49.608
  },
  "oklch": {
    "l": 0.61311,
    "c": 0.25065,
    "h": 330.9
  },
  "luminance": 0.1948
}

Semantic roles & 50–950 ramp

primary
#D12CC7
secondary
#87D28B
accent
#E84A40
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #D12CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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