#D17CFE#D17CFE

#D17CFE is a light, vivid violet. Relative luminance 0.351; OKLCH L 72.8% C 0.197 H 312.7°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#D17CFE
RGBrgb(209, 124, 254)
HSLhsl(279, 98%, 74%)
HSVhsv(279, 51%, 100%)
CMYKcmyk(17.7%, 51.2%, 0%, 0.4%)
CIE-LABlab(65.85, 54.54, -51.87)
CIE-LCHlch(65.85, 75.26, 316.44°)
OKLaboklab(72.84% 0.1335 -0.1448)
OKLCHoklch(72.84% 0.197 312.7)
XYZxyz(51.3885, 35.1276, 97.8200)
Luminance0.3513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17CFE #A9FE7C
analogous
#907CFE #D17CFE #FE7CEA
triadic
#D17CFE #FED17C #7CFED1
tetradic
#D17CFE #FE907C #A9FE7C #7CEAFE
square
#D17CFE #FE907C #A9FE7C #7CEAFE
split-complementary
#D17CFE #EAFE7C #7CFE90
monochromatic
#A603FD #BC3FFE #D17CFE #E6B9FE #F4E1FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D17CFE#FFFFFF#000000##000000
##D17CFE1.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)
#5C9BFF
Deuteranopia (green-blind)
#76A2FB
Tritanopia (blue-blind)
#CD91B2
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d17cfe;
/* rgb */ color: rgb(209, 124, 254);
/* oklch */ color: oklch(72.8% 0.197 312.7);
Tailwind
colors: {
  custom: {
    50: '#e2a4ff',
    500: '#d17cfe',
    950: '#000000',
  },
}
SCSS
$custom: #d17cfe;
$custom-light: #e2a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d17cfe",
  "rgb": {
    "r": 209,
    "g": 124,
    "b": 254
  },
  "hsl": {
    "h": 279.231,
    "s": 98.485,
    "l": 74.118
  },
  "oklch": {
    "l": 0.72837,
    "c": 0.19698,
    "h": 312.7
  },
  "luminance": 0.35126
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D17CFE

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

Preview Lab → · Contrast checker → · Palette generator →

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