#D51FD3#D51FD3

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

Color values

HEX#D51FD3
RGBrgb(213, 31, 211)
HSLhsl(301, 75%, 48%)
HSVhsv(301, 85%, 84%)
CMYKcmyk(0%, 85.4%, 0.9%, 16.5%)
CIE-LABlab(51.65, 82.14, -50.33)
CIE-LCHlch(51.65, 96.33, 328.50°)
OKLaboklab(61.93% 0.2304 -0.1397)
OKLCHoklch(61.93% 0.269 328.8)
XYZxyz(39.6881, 19.8324, 63.3531)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D51FD3 #1FD521
analogous
#7C1FD5 #D51FD3 #D51F78
triadic
#D51FD3 #D3D51F #1FD3D5
tetradic
#D51FD3 #D57C1F #1FD521 #1F78D5
square
#D51FD3 #D57C1F #1FD521 #1F78D5
split-complementary
#D51FD3 #78D51F #1FD57C
monochromatic
#6A0F69 #A0179E #D51FD3 #E54CE3 #ED82EC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D51FD3#FFFFFF#000000##000000
##D51FD31.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)
#006DD7
Deuteranopia (green-blind)
#5C83CF
Tritanopia (blue-blind)
#DC437F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d51fd3;
/* rgb */ color: rgb(213, 31, 211);
/* oklch */ color: oklch(61.9% 0.269 328.8);
Tailwind
colors: {
  custom: {
    50: '#e777e1',
    500: '#d51fd3',
    950: '#000000',
  },
}
SCSS
$custom: #d51fd3;
$custom-light: #e777e1;
$custom-dark: #000000;
JSON
{
  "hex": "#d51fd3",
  "rgb": {
    "r": 213,
    "g": 31,
    "b": 211
  },
  "hsl": {
    "h": 300.659,
    "s": 74.59,
    "l": 47.843
  },
  "oklch": {
    "l": 0.61934,
    "c": 0.26945,
    "h": 328.8
  },
  "luminance": 0.19829
}

Semantic roles & 50–950 ramp

primary
#D51FD3
secondary
#7AD57B
accent
#F13937
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#170A15
muted
#857C83

Preview Lab

Preview with #D51FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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