#D170F7#D170F7

#D170F7 is a light, highly saturated purple. Relative luminance 0.319; OKLCH L 70.8% C 0.208 H 315.5°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#D170F7
RGBrgb(209, 112, 247)
HSLhsl(283, 89%, 70%)
HSVhsv(283, 55%, 97%)
CMYKcmyk(15.4%, 54.7%, 0%, 3.1%)
CIE-LABlab(63.23, 59.08, -52.17)
CIE-LCHlch(63.23, 78.82, 318.55°)
OKLaboklab(70.79% 0.1484 -0.1457)
OKLCHoklch(70.79% 0.208 315.5)
XYZxyz(48.8746, 31.8606, 91.5528)
Luminance0.3186 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D170F7 #96F770
analogous
#8D70F7 #D170F7 #F770DA
triadic
#D170F7 #F7D170 #70F7D1
tetradic
#D170F7 #F78D70 #96F770 #70DAF7
square
#D170F7 #F78D70 #96F770 #70DAF7
split-complementary
#D170F7 #DAF770 #70F78D
monochromatic
#A50DE0 #BE36F4 #D170F7 #E4AAFA #F6E2FD

Accessibility & contrast

On white

2.85
#D170F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#D170F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D170F7
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D170F7#FFFFFF#000000##000000
##D170F71.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E93FB
Deuteranopia (green-blind)
#709CF4
Tritanopia (blue-blind)
#CF86A9
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d170f7;
/* rgb */ color: rgb(209, 112, 247);
/* oklch */ color: oklch(70.8% 0.208 315.5);
Tailwind
colors: {
  custom: {
    50: '#e29dfa',
    500: '#d170f7',
    950: '#000000',
  },
}
SCSS
$custom: #d170f7;
$custom-light: #e29dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#d170f7",
  "rgb": {
    "r": 209,
    "g": 112,
    "b": 247
  },
  "hsl": {
    "h": 283.111,
    "s": 89.404,
    "l": 70.392
  },
  "oklch": {
    "l": 0.70792,
    "c": 0.20796,
    "h": 315.5
  },
  "luminance": 0.31859
}

Semantic roles & 50–950 ramp

primary
#D170F7
secondary
#D9F4CF
accent
#E60041
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D170F7

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

Preview Lab → · Contrast checker → · Palette generator →

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