#D170F8#D170F8

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

Color values

HEX#D170F8
RGBrgb(209, 112, 248)
HSLhsl(283, 91%, 71%)
HSVhsv(283, 55%, 97%)
CMYKcmyk(15.7%, 54.8%, 0%, 2.7%)
CIE-LABlab(63.28, 59.28, -52.64)
CIE-LCHlch(63.28, 79.28, 318.39°)
OKLaboklab(70.85% 0.1485 -0.147)
OKLCHoklch(70.85% 0.209 315.3)
XYZxyz(49.0293, 31.9225, 92.3677)
Luminance0.3192 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D170F8 #97F870
analogous
#8D70F8 #D170F8 #F870DB
triadic
#D170F8 #F8D170 #70F8D1
tetradic
#D170F8 #F88D70 #97F870 #70DBF8
square
#D170F8 #F88D70 #97F870 #70DBF8
split-complementary
#D170F8 #DBF870 #70F88D
monochromatic
#A50BE3 #BE36F5 #D170F8 #E4AAFB #F6E2FE

Accessibility & contrast

On white

2.84
#D170F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#D170F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D170F8
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D170F8#FFFFFF#000000##000000
##D170F81.002.847.387.38
#FFFFFF2.841.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E93FC
Deuteranopia (green-blind)
#6F9CF5
Tritanopia (blue-blind)
#CE86AA
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d170f8;
/* rgb */ color: rgb(209, 112, 248);
/* oklch */ color: oklch(70.8% 0.209 315.3);
Tailwind
colors: {
  custom: {
    50: '#e29dfb',
    500: '#d170f8',
    950: '#000000',
  },
}
SCSS
$custom: #d170f8;
$custom-light: #e29dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#d170f8",
  "rgb": {
    "r": 209,
    "g": 112,
    "b": 248
  },
  "hsl": {
    "h": 282.794,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.70847,
    "c": 0.20897,
    "h": 315.3
  },
  "luminance": 0.31921
}

Semantic roles & 50–950 ramp

primary
#D170F8
secondary
#DAF4CF
accent
#E60042
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D170F8

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

Preview Lab → · Contrast checker → · Palette generator →

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