#D12DD2#D12DD2

#D12DD2 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 62.0% C 0.258 H 327.9°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#D12DD2
RGBrgb(209, 45, 210)
HSLhsl(300, 65%, 50%)
HSVhsv(300, 79%, 82%)
CMYKcmyk(0.5%, 78.6%, 0%, 17.6%)
CIE-LABlab(51.94, 78.29, -49.34)
CIE-LCHlch(51.94, 92.54, 327.78°)
OKLaboklab(62% 0.2181 -0.137)
OKLCHoklch(62% 0.258 327.9)
XYZxyz(38.8652, 20.0881, 62.7907)
Luminance0.2009 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D12DD2 #2ED22D
analogous
#7E2DD2 #D12DD2 #D22D81
triadic
#D12DD2 #D2D12D #2DD2D1
tetradic
#D12DD2 #D27E2D #2ED22D #2D81D2
square
#D12DD2 #D27E2D #2ED22D #2D81D2
split-complementary
#D12DD2 #81D22D #2DD27E
monochromatic
#6D176D #9F22A0 #D12DD2 #DC5FDD #E792E8

Accessibility & contrast

On white

4.19
#D12DD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#D12DD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D12DD2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D12DD2#FFFFFF#000000##000000
##D12DD21.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#5D83CE
Tritanopia (blue-blind)
#D84B80
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d12dd2;
/* rgb */ color: rgb(209, 45, 210);
/* oklch */ color: oklch(62.0% 0.258 327.9);
Tailwind
colors: {
  custom: {
    50: '#e47ae0',
    500: '#d12dd2',
    950: '#000000',
  },
}
SCSS
$custom: #d12dd2;
$custom-light: #e47ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#d12dd2",
  "rgb": {
    "r": 209,
    "g": 45,
    "b": 210
  },
  "hsl": {
    "h": 299.636,
    "s": 64.706,
    "l": 50
  },
  "oklch": {
    "l": 0.61995,
    "c": 0.25754,
    "h": 327.9
  },
  "luminance": 0.20085
}

Semantic roles & 50–950 ramp

primary
#D12DD2
secondary
#89D288
accent
#E84041
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #D12DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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