#D17EFE#D17EFE

#D17EFE is a light, vivid violet. Relative luminance 0.356; OKLCH L 73.1% C 0.194 H 312.5°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#D17EFE
RGBrgb(209, 126, 254)
HSLhsl(279, 98%, 75%)
HSVhsv(279, 50%, 100%)
CMYKcmyk(17.7%, 50.4%, 0%, 0.4%)
CIE-LABlab(66.24, 53.52, -51.25)
CIE-LCHlch(66.24, 74.10, 316.24°)
OKLaboklab(73.13% 0.1309 -0.143)
OKLCHoklch(73.13% 0.194 312.5)
XYZxyz(51.6416, 35.6339, 97.9043)
Luminance0.3563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17EFE #ABFE7E
analogous
#917EFE #D17EFE #FE7EEB
triadic
#D17EFE #FED17E #7EFED1
tetradic
#D17EFE #FE917E #ABFE7E #7EEBFE
square
#D17EFE #FE917E #ABFE7E #7EEBFE
split-complementary
#D17EFE #EBFE7E #7EFE91
monochromatic
#A605FD #BB41FE #D17EFE #E7BBFE #F4E1FF

Accessibility & contrast

On white

2.58
#D17EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#D17EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17EFE
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17EFE#FFFFFF#000000##000000
##D17EFE1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9DFF
Deuteranopia (green-blind)
#78A3FB
Tritanopia (blue-blind)
#CD93B3
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d17efe;
/* rgb */ color: rgb(209, 126, 254);
/* oklch */ color: oklch(73.1% 0.194 312.5);
Tailwind
colors: {
  custom: {
    50: '#e1a6ff',
    500: '#d17efe',
    950: '#000000',
  },
}
SCSS
$custom: #d17efe;
$custom-light: #e1a6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d17efe",
  "rgb": {
    "r": 209,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 278.906,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.73126,
    "c": 0.19389,
    "h": 312.5
  },
  "luminance": 0.35633
}

Semantic roles & 50–950 ramp

primary
#D17EFE
secondary
#E0F7D4
accent
#E60051
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D17EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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