#D21FC2#D21FC2

#D21FC2 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.5% C 0.257 H 332.6°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#D21FC2
RGBrgb(210, 31, 194)
HSLhsl(305, 74%, 47%)
HSVhsv(305, 85%, 82%)
CMYKcmyk(0%, 85.2%, 7.6%, 17.6%)
CIE-LABlab(50.19, 79.13, -42.88)
CIE-LCHlch(50.19, 90.01, 331.55°)
OKLaboklab(60.51% 0.2282 -0.1181)
OKLCHoklch(60.51% 0.257 332.6)
XYZxyz(36.8062, 18.5799, 52.6763)
Luminance0.1858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D21FC2 #1FD22F
analogous
#881FD2 #D21FC2 #D21F69
triadic
#D21FC2 #C2D21F #1FC2D2
tetradic
#D21FC2 #D2881F #1FD22F #1F69D2
square
#D21FC2 #D2881F #1FD22F #1F69D2
split-complementary
#D21FC2 #69D21F #1FD288
monochromatic
#670F5F #9D1791 #D21FC2 #E44AD6 #EC7FE2

Accessibility & contrast

On white

4.45
#D21FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#D21FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D21FC2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D21FC2#FFFFFF#000000##000000
##D21FC21.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0768C6
Deuteranopia (green-blind)
#6380BE
Tritanopia (blue-blind)
#DB3A75
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #d21fc2;
/* rgb */ color: rgb(210, 31, 194);
/* oklch */ color: oklch(60.5% 0.257 332.6);
Tailwind
colors: {
  custom: {
    50: '#e476d5',
    500: '#d21fc2',
    950: '#000000',
  },
}
SCSS
$custom: #d21fc2;
$custom-light: #e476d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d21fc2",
  "rgb": {
    "r": 210,
    "g": 31,
    "b": 194
  },
  "hsl": {
    "h": 305.363,
    "s": 74.274,
    "l": 47.255
  },
  "oklch": {
    "l": 0.60506,
    "c": 0.25694,
    "h": 332.6
  },
  "luminance": 0.18577
}

Semantic roles & 50–950 ramp

primary
#D21FC2
secondary
#78D481
accent
#F14837
background
#FEF7FD
surface
#FDEEFA
border
#D5C9D3
text
#160A14
muted
#847C83

Preview Lab

Preview with #D21FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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