#D951F2#D951F2

#D951F2 is a light, highly saturated purple. Relative luminance 0.270; OKLCH L 67.9% C 0.249 H 321.1°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#D951F2
RGBrgb(217, 81, 242)
HSLhsl(291, 86%, 63%)
HSVhsv(291, 67%, 95%)
CMYKcmyk(10.3%, 66.5%, 0%, 5.1%)
CIE-LABlab(59.02, 73.65, -56.03)
CIE-LCHlch(59.02, 92.54, 322.74°)
OKLaboklab(67.87% 0.1936 -0.1565)
OKLCHoklch(67.87% 0.249 321.1)
XYZxyz(47.5829, 27.0498, 86.7020)
Luminance0.2705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D951F2 #6AF251
analogous
#8851F2 #D951F2 #F251BA
triadic
#D951F2 #F2D951 #51F2D9
tetradic
#D951F2 #F28851 #6AF251 #51BAF2
square
#D951F2 #F28851 #6AF251 #51BAF2
split-complementary
#D951F2 #BAF251 #51F288
monochromatic
#A00EBB #CD18EE #D951F2 #E58AF6 #F2C3FB

Accessibility & contrast

On white

3.28
#D951F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#D951F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D951F2
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D951F2#FFFFFF#000000##000000
##D951F21.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A84F7
Deuteranopia (green-blind)
#6293EE
Tritanopia (blue-blind)
#DB6D9B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #d951f2;
/* rgb */ color: rgb(217, 81, 242);
/* oklch */ color: oklch(67.9% 0.249 321.1);
Tailwind
colors: {
  custom: {
    50: '#e98cf7',
    500: '#d951f2',
    950: '#000000',
  },
}
SCSS
$custom: #d951f2;
$custom-light: #e98cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#d951f2",
  "rgb": {
    "r": 217,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 290.683,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.67869,
    "c": 0.24898,
    "h": 321.1
  },
  "luminance": 0.27047
}

Semantic roles & 50–950 ramp

primary
#D951F2
secondary
#BCECB3
accent
#E30326
background
#FEF9FF
surface
#FDF1FF
border
#D5CBD7
text
#170D17
muted
#857E85

Preview Lab

Preview with #D951F2

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

Preview Lab → · Contrast checker → · Palette generator →

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