#D17EF2#D17EF2

#D17EF2 is a light, vivid purple. Relative luminance 0.349; OKLCH L 72.5% C 0.181 H 315.7°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#D17EF2
RGBrgb(209, 126, 242)
HSLhsl(283, 82%, 72%)
HSVhsv(283, 48%, 95%)
CMYKcmyk(13.6%, 47.9%, 0%, 5.1%)
CIE-LABlab(65.66, 51.04, -45.57)
CIE-LCHlch(65.66, 68.42, 318.24°)
OKLaboklab(72.51% 0.1295 -0.1266)
OKLCHoklch(72.51% 0.181 315.7)
XYZxyz(49.7799, 34.8893, 88.0992)
Luminance0.3489 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17EF2 #9FF27E
analogous
#977EF2 #D17EF2 #F27ED9
triadic
#D17EF2 #F2D17E #7EF2D1
tetradic
#D17EF2 #F2977E #9FF27E #7ED9F2
square
#D17EF2 #F2977E #9FF27E #7ED9F2
split-complementary
#D17EF2 #D9F27E #7EF297
monochromatic
#A616DF #BD46EC #D17EF2 #E5B6F8 #F5E3FC

Accessibility & contrast

On white

2.63
#D17EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#D17EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17EF2
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17EF2#FFFFFF#000000##000000
##D17EF21.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#679AF6
Deuteranopia (green-blind)
#7FA2EF
Tritanopia (blue-blind)
#CF8FAD
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d17ef2;
/* rgb */ color: rgb(209, 126, 242);
/* oklch */ color: oklch(72.5% 0.181 315.7);
Tailwind
colors: {
  custom: {
    50: '#e1a6f7',
    500: '#d17ef2',
    950: '#000000',
  },
}
SCSS
$custom: #d17ef2;
$custom-light: #e1a6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d17ef2",
  "rgb": {
    "r": 209,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 282.931,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.7251,
    "c": 0.1811,
    "h": 315.7
  },
  "luminance": 0.34888
}

Semantic roles & 50–950 ramp

primary
#D17EF2
secondary
#DFF4D7
accent
#DE0744
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#160F17
muted
#847F85

Preview Lab

Preview with #D17EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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