#D170FC#D170FC

#D170FC is a light, highly saturated purple. Relative luminance 0.322; OKLCH L 71.1% C 0.213 H 314.3°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#D170FC
RGBrgb(209, 112, 252)
HSLhsl(282, 96%, 71%)
HSVhsv(282, 56%, 99%)
CMYKcmyk(17.1%, 55.6%, 0%, 1.2%)
CIE-LABlab(63.49, 60.09, -54.51)
CIE-LCHlch(63.49, 81.13, 317.78°)
OKLaboklab(71.07% 0.1487 -0.1525)
OKLCHoklch(71.07% 0.213 314.3)
XYZxyz(49.6565, 32.1734, 95.6709)
Luminance0.3217 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D170FC #9BFC70
analogous
#8B70FC #D170FC #FC70E1
triadic
#D170FC #FCD170 #70FCD1
tetradic
#D170FC #FC8B70 #9BFC70 #70E1FC
square
#D170FC #FC8B70 #9BFC70 #70E1FC
split-complementary
#D170FC #E1FC70 #70FC8B
monochromatic
#A505ED #BE34FB #D170FC #E4ACFD #F5E1FE

Accessibility & contrast

On white

2.82
#D170FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#D170FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D170FC
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D170FC#FFFFFF#000000##000000
##D170FC1.002.827.437.43
#FFFFFF2.821.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A94FF
Deuteranopia (green-blind)
#6D9CF8
Tritanopia (blue-blind)
#CE88AC
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d170fc;
/* rgb */ color: rgb(209, 112, 252);
/* oklch */ color: oklch(71.1% 0.213 314.3);
Tailwind
colors: {
  custom: {
    50: '#e29dfe',
    500: '#d170fc',
    950: '#000000',
  },
}
SCSS
$custom: #d170fc;
$custom-light: #e29dfe;
$custom-dark: #000000;
JSON
{
  "hex": "#d170fc",
  "rgb": {
    "r": 209,
    "g": 112,
    "b": 252
  },
  "hsl": {
    "h": 281.571,
    "s": 95.89,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71066,
    "c": 0.213,
    "h": 314.3
  },
  "luminance": 0.32172
}

Semantic roles & 50–950 ramp

primary
#D170FC
secondary
#DDF6D2
accent
#E60046
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F18
muted
#847E86

Preview Lab

Preview with #D170FC

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

Preview Lab → · Contrast checker → · Palette generator →

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