#D17BEF#D17BEF

#D17BEF is a light, vivid purple. Relative luminance 0.340; OKLCH L 71.9% C 0.183 H 316.8°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#D17BEF
RGBrgb(209, 123, 239)
HSLhsl(284, 78%, 71%)
HSVhsv(284, 49%, 94%)
CMYKcmyk(12.6%, 48.5%, 0%, 6.3%)
CIE-LABlab(64.93, 51.97, -45.07)
CIE-LCHlch(64.93, 68.80, 319.07°)
OKLaboklab(71.92% 0.1332 -0.1251)
OKLCHoklch(71.92% 0.183 316.8)
XYZxyz(48.9552, 33.9548, 85.6197)
Luminance0.3395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17BEF #99EF7B
analogous
#977BEF #D17BEF #EF7BD3
triadic
#D17BEF #EFD17B #7BEFD1
tetradic
#D17BEF #EF977B #99EF7B #7BD3EF
square
#D17BEF #EF977B #99EF7B #7BD3EF
split-complementary
#D17BEF #D3EF7B #7BEF97
monochromatic
#A51AD6 #BE44E8 #D17BEF #E4B2F6 #F5E4FC

Accessibility & contrast

On white

2.70
#D17BEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#D17BEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17BEF
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17BEF#FFFFFF#000000##000000
##D17BEF1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6498F3
Deuteranopia (green-blind)
#7EA0EC
Tritanopia (blue-blind)
#D08CAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d17bef;
/* rgb */ color: rgb(209, 123, 239);
/* oklch */ color: oklch(71.9% 0.183 316.8);
Tailwind
colors: {
  custom: {
    50: '#e1a4f4',
    500: '#d17bef',
    950: '#000000',
  },
}
SCSS
$custom: #d17bef;
$custom-light: #e1a4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d17bef",
  "rgb": {
    "r": 209,
    "g": 123,
    "b": 239
  },
  "hsl": {
    "h": 284.483,
    "s": 78.378,
    "l": 70.98
  },
  "oklch": {
    "l": 0.71918,
    "c": 0.18276,
    "h": 316.8
  },
  "luminance": 0.33953
}

Semantic roles & 50–950 ramp

primary
#D17BEF
secondary
#DBF2D3
accent
#DB0B41
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D17BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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