#D51FD5#D51FD5

#D51FD5 is a light, highly saturated purple. Relative luminance 0.199; OKLCH L 62.1% C 0.271 H 328.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#D51FD5
RGBrgb(213, 31, 213)
HSLhsl(300, 75%, 48%)
HSVhsv(300, 85%, 84%)
CMYKcmyk(0%, 85.4%, 0%, 16.5%)
CIE-LABlab(51.76, 82.43, -51.30)
CIE-LCHlch(51.76, 97.09, 328.11°)
OKLaboklab(62.05% 0.2303 -0.1425)
OKLCHoklch(62.05% 0.271 328.2)
XYZxyz(39.9404, 19.9333, 64.6818)
Luminance0.1993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D51FD5 #1FD51F
analogous
#7A1FD5 #D51FD5 #D51F7A
triadic
#D51FD5 #D5D51F #1FD5D5
tetradic
#D51FD5 #D57A1F #1FD51F #1F7AD5
square
#D51FD5 #D57A1F #1FD51F #1F7AD5
split-complementary
#D51FD5 #7AD51F #1FD57A
monochromatic
#6A0F6A #A017A0 #D51FD5 #E54CE5 #ED82ED

Accessibility & contrast

On white

4.21
#D51FD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#D51FD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D51FD5
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D51FD5#FFFFFF#000000##000000
##D51FD51.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#5B83D1
Tritanopia (blue-blind)
#DC4580
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d51fd5;
/* rgb */ color: rgb(213, 31, 213);
/* oklch */ color: oklch(62.1% 0.271 328.2);
Tailwind
colors: {
  custom: {
    50: '#e777e2',
    500: '#d51fd5',
    950: '#000000',
  },
}
SCSS
$custom: #d51fd5;
$custom-light: #e777e2;
$custom-dark: #000000;
JSON
{
  "hex": "#d51fd5",
  "rgb": {
    "r": 213,
    "g": 31,
    "b": 213
  },
  "hsl": {
    "h": 300,
    "s": 74.59,
    "l": 47.843
  },
  "oklch": {
    "l": 0.62052,
    "c": 0.2708,
    "h": 328.2
  },
  "luminance": 0.1993
}

Semantic roles & 50–950 ramp

primary
#D51FD5
secondary
#7AD57A
accent
#F13737
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#170A15
muted
#857C83

Preview Lab

Preview with #D51FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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