#D520D2#D520D2

#D520D2 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.9% C 0.268 H 329.0°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#D520D2
RGBrgb(213, 32, 210)
HSLhsl(301, 74%, 48%)
HSVhsv(301, 85%, 84%)
CMYKcmyk(0%, 85%, 1.4%, 16.5%)
CIE-LABlab(51.65, 81.81, -49.76)
CIE-LCHlch(51.65, 95.75, 328.69°)
OKLaboklab(61.92% 0.23 -0.138)
OKLCHoklch(61.92% 0.268 329)
XYZxyz(39.5896, 19.8355, 62.7038)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D520D2 #20D523
analogous
#7D20D5 #D520D2 #D52078
triadic
#D520D2 #D2D520 #20D2D5
tetradic
#D520D2 #D57D20 #20D523 #2078D5
square
#D520D2 #D57D20 #20D523 #2078D5
split-complementary
#D520D2 #78D520 #20D57D
monochromatic
#6B1069 #A0189E #D520D2 #E44EE2 #EC83EB

Accessibility & contrast

On white

4.23
#D520D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#D520D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D520D2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D520D2#FFFFFF#000000##000000
##D520D21.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#5D83CE
Tritanopia (blue-blind)
#DC437E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d520d2;
/* rgb */ color: rgb(213, 32, 210);
/* oklch */ color: oklch(61.9% 0.268 329.0);
Tailwind
colors: {
  custom: {
    50: '#e777e0',
    500: '#d520d2',
    950: '#000000',
  },
}
SCSS
$custom: #d520d2;
$custom-light: #e777e0;
$custom-dark: #000000;
JSON
{
  "hex": "#d520d2",
  "rgb": {
    "r": 213,
    "g": 32,
    "b": 210
  },
  "hsl": {
    "h": 300.994,
    "s": 73.878,
    "l": 48.039
  },
  "oklch": {
    "l": 0.61919,
    "c": 0.26821,
    "h": 329
  },
  "luminance": 0.19832
}

Semantic roles & 50–950 ramp

primary
#D520D2
secondary
#7CD57D
accent
#F13A37
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#170A15
muted
#857C83

Preview Lab

Preview with #D520D2

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

Preview Lab → · Contrast checker → · Palette generator →

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