#D21FC3#D21FC3

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

Color values

HEX#D21FC3
RGBrgb(210, 31, 195)
HSLhsl(305, 74%, 47%)
HSVhsv(305, 85%, 82%)
CMYKcmyk(0%, 85.2%, 7.1%, 17.6%)
CIE-LABlab(50.25, 79.27, -43.38)
CIE-LCHlch(50.25, 90.37, 331.31°)
OKLaboklab(60.56% 0.2282 -0.1195)
OKLCHoklch(60.56% 0.258 332.3)
XYZxyz(36.9188, 18.6250, 53.2698)
Luminance0.1862 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D21FC3 #1FD22E
analogous
#881FD2 #D21FC3 #D21F69
triadic
#D21FC3 #C3D21F #1FC3D2
tetradic
#D21FC3 #D2881F #1FD22E #1F69D2
square
#D21FC3 #D2881F #1FD22E #1F69D2
split-complementary
#D21FC3 #69D21F #1FD288
monochromatic
#670F60 #9D1791 #D21FC3 #E44AD7 #EC7FE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D21FC3#FFFFFF#000000##000000
##D21FC31.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)
#0368C7
Deuteranopia (green-blind)
#6380BF
Tritanopia (blue-blind)
#DB3A75
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #d21fc3;
/* rgb */ color: rgb(210, 31, 195);
/* oklch */ color: oklch(60.6% 0.258 332.3);
Tailwind
colors: {
  custom: {
    50: '#e476d6',
    500: '#d21fc3',
    950: '#000000',
  },
}
SCSS
$custom: #d21fc3;
$custom-light: #e476d6;
$custom-dark: #000000;
JSON
{
  "hex": "#d21fc3",
  "rgb": {
    "r": 210,
    "g": 31,
    "b": 195
  },
  "hsl": {
    "h": 305.028,
    "s": 74.274,
    "l": 47.255
  },
  "oklch": {
    "l": 0.60561,
    "c": 0.25759,
    "h": 332.3
  },
  "luminance": 0.18622
}

Semantic roles & 50–950 ramp

primary
#D21FC3
secondary
#78D480
accent
#F14637
background
#FEF7FD
surface
#FDEEFA
border
#D5C9D3
text
#160A14
muted
#847C83

Preview Lab

Preview with #D21FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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