#D17BFE#D17BFE

#D17BFE is a light, vivid violet. Relative luminance 0.349; OKLCH L 72.7% C 0.199 H 312.8°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#D17BFE
RGBrgb(209, 123, 254)
HSLhsl(279, 98%, 74%)
HSVhsv(279, 52%, 100%)
CMYKcmyk(17.7%, 51.6%, 0%, 0.4%)
CIE-LABlab(65.65, 55.04, -52.17)
CIE-LCHlch(65.65, 75.84, 316.53°)
OKLaboklab(72.69% 0.1348 -0.1457)
OKLCHoklch(72.69% 0.199 312.8)
XYZxyz(51.2638, 34.8782, 97.7784)
Luminance0.3488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17BFE #A8FE7B
analogous
#907BFE #D17BFE #FE7BEA
triadic
#D17BFE #FED17B #7BFED1
tetradic
#D17BFE #FE907B #A8FE7B #7BEAFE
square
#D17BFE #FE907B #A8FE7B #7BEAFE
split-complementary
#D17BFE #EAFE7B #7BFE90
monochromatic
#A702FD #BC3EFE #D17BFE #E6B8FE #F4E1FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D17BFE#FFFFFF#000000##000000
##D17BFE1.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)
#5A9BFF
Deuteranopia (green-blind)
#75A1FB
Tritanopia (blue-blind)
#CD90B1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d17bfe;
/* rgb */ color: rgb(209, 123, 254);
/* oklch */ color: oklch(72.7% 0.199 312.8);
Tailwind
colors: {
  custom: {
    50: '#e2a4ff',
    500: '#d17bfe',
    950: '#000000',
  },
}
SCSS
$custom: #d17bfe;
$custom-light: #e2a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d17bfe",
  "rgb": {
    "r": 209,
    "g": 123,
    "b": 254
  },
  "hsl": {
    "h": 279.389,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72693,
    "c": 0.19852,
    "h": 312.8
  },
  "luminance": 0.34877
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D17BFE

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

Preview Lab → · Contrast checker → · Palette generator →

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