#D170FB#D170FB

#D170FB is a light, highly saturated purple. Relative luminance 0.321; OKLCH L 71.0% C 0.212 H 314.5°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#D170FB
RGBrgb(209, 112, 251)
HSLhsl(282, 95%, 71%)
HSVhsv(282, 55%, 98%)
CMYKcmyk(16.7%, 55.4%, 0%, 1.6%)
CIE-LABlab(63.43, 59.89, -54.05)
CIE-LCHlch(63.43, 80.67, 317.93°)
OKLaboklab(71.01% 0.1487 -0.1511)
OKLCHoklch(71.01% 0.212 314.5)
XYZxyz(49.4984, 32.1101, 94.8385)
Luminance0.3211 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D170FB #9AFB70
analogous
#8B70FB #D170FB #FB70DF
triadic
#D170FB #FBD170 #70FBD1
tetradic
#D170FB #FB8B70 #9AFB70 #70DFFB
square
#D170FB #FB8B70 #9AFB70 #70DFFB
split-complementary
#D170FB #DFFB70 #70FB8B
monochromatic
#A507EA #BE34F9 #D170FB #E4ACFD #F5E1FE

Accessibility & contrast

On white

2.83
#D170FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#D170FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D170FB
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D170FB#FFFFFF#000000##000000
##D170FB1.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B94FF
Deuteranopia (green-blind)
#6D9CF7
Tritanopia (blue-blind)
#CE87AB
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d170fb;
/* rgb */ color: rgb(209, 112, 251);
/* oklch */ color: oklch(71.0% 0.212 314.5);
Tailwind
colors: {
  custom: {
    50: '#e29dfd',
    500: '#d170fb',
    950: '#000000',
  },
}
SCSS
$custom: #d170fb;
$custom-light: #e29dfd;
$custom-dark: #000000;
JSON
{
  "hex": "#d170fb",
  "rgb": {
    "r": 209,
    "g": 112,
    "b": 251
  },
  "hsl": {
    "h": 281.871,
    "s": 94.558,
    "l": 71.176
  },
  "oklch": {
    "l": 0.71011,
    "c": 0.21199,
    "h": 314.5
  },
  "luminance": 0.32109
}

Semantic roles & 50–950 ramp

primary
#D170FB
secondary
#DCF6D1
accent
#E60045
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F18
muted
#847E86

Preview Lab

Preview with #D170FB

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

Preview Lab → · Contrast checker → · Palette generator →

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