#D170F6#D170F6

#D170F6 is a light, highly saturated purple. Relative luminance 0.318; OKLCH L 70.7% C 0.207 H 315.8°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#D170F6
RGBrgb(209, 112, 246)
HSLhsl(283, 88%, 70%)
HSVhsv(283, 54%, 96%)
CMYKcmyk(15%, 54.5%, 0%, 3.5%)
CIE-LABlab(63.18, 58.88, -51.70)
CIE-LCHlch(63.18, 78.36, 318.71°)
OKLaboklab(70.74% 0.1484 -0.1443)
OKLCHoklch(70.74% 0.207 315.8)
XYZxyz(48.7207, 31.7990, 90.7423)
Luminance0.3180 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D170F6 #95F670
analogous
#8E70F6 #D170F6 #F670D8
triadic
#D170F6 #F6D170 #70F6D1
tetradic
#D170F6 #F68E70 #95F670 #70D8F6
square
#D170F6 #F68E70 #95F670 #70D8F6
split-complementary
#D170F6 #D8F670 #70F68E
monochromatic
#A40EDE #BE36F2 #D170F6 #E4AAFA #F6E2FD

Accessibility & contrast

On white

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

On black

7.36
#D170F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D170F6
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D170F6#FFFFFF#000000##000000
##D170F61.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d170f6;
/* rgb */ color: rgb(209, 112, 246);
/* oklch */ color: oklch(70.7% 0.207 315.8);
Tailwind
colors: {
  custom: {
    50: '#e29dfa',
    500: '#d170f6',
    950: '#000000',
  },
}
SCSS
$custom: #d170f6;
$custom-light: #e29dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#d170f6",
  "rgb": {
    "r": 209,
    "g": 112,
    "b": 246
  },
  "hsl": {
    "h": 283.433,
    "s": 88.158,
    "l": 70.196
  },
  "oklch": {
    "l": 0.70738,
    "c": 0.20695,
    "h": 315.8
  },
  "luminance": 0.31797
}

Semantic roles & 50–950 ramp

primary
#D170F6
secondary
#D9F3CE
accent
#E50140
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D170F6

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

Preview Lab → · Contrast checker → · Palette generator →

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