#D17FF2#D17FF2

#D17FF2 is a light, vivid purple. Relative luminance 0.351; OKLCH L 72.7% C 0.179 H 315.6°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#D17FF2
RGBrgb(209, 127, 242)
HSLhsl(283, 82%, 72%)
HSVhsv(283, 48%, 95%)
CMYKcmyk(13.6%, 47.5%, 0%, 5.1%)
CIE-LABlab(65.86, 50.53, -45.25)
CIE-LCHlch(65.86, 67.83, 318.15°)
OKLaboklab(72.66% 0.1282 -0.1257)
OKLCHoklch(72.66% 0.18 315.6)
XYZxyz(49.9084, 35.1463, 88.1420)
Luminance0.3514 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17FF2 #A0F27F
analogous
#987FF2 #D17FF2 #F27FD9
triadic
#D17FF2 #F2D17F #7FF2D1
tetradic
#D17FF2 #F2987F #A0F27F #7FD9F2
square
#D17FF2 #F2987F #A0F27F #7FD9F2
split-complementary
#D17FF2 #D9F27F #7FF298
monochromatic
#A617E0 #BD47EC #D17FF2 #E5B7F8 #F5E3FC

Accessibility & contrast

On white

2.62
#D17FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#D17FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17FF2
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17FF2#FFFFFF#000000##000000
##D17FF21.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#689BF6
Deuteranopia (green-blind)
#80A2EF
Tritanopia (blue-blind)
#CF90AD
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d17ff2;
/* rgb */ color: rgb(209, 127, 242);
/* oklch */ color: oklch(72.7% 0.179 315.6);
Tailwind
colors: {
  custom: {
    50: '#e1a6f7',
    500: '#d17ff2',
    950: '#000000',
  },
}
SCSS
$custom: #d17ff2;
$custom-light: #e1a6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d17ff2",
  "rgb": {
    "r": 209,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 282.783,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.72659,
    "c": 0.1795,
    "h": 315.6
  },
  "luminance": 0.35145
}

Semantic roles & 50–950 ramp

primary
#D17FF2
secondary
#DFF4D7
accent
#DE0845
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D17FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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