#C170D6#C170D6

#C170D6 is a light, vivid purple. Relative luminance 0.278; OKLCH L 67.2% C 0.167 H 319.1°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#C170D6
RGBrgb(193, 112, 214)
HSLhsl(288, 55%, 64%)
HSVhsv(288, 48%, 84%)
CMYKcmyk(9.8%, 47.7%, 0%, 16.1%)
CIE-LABlab(59.69, 48.20, -39.49)
CIE-LCHlch(59.69, 62.31, 320.67°)
OKLaboklab(67.24% 0.1262 -0.1093)
OKLCHoklch(67.24% 0.167 319.1)
XYZxyz(39.9225, 27.7823, 66.8648)
Luminance0.2778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170D6 #85D670
analogous
#8E70D6 #C170D6 #D670B8
triadic
#C170D6 #D6C170 #70D6C1
tetradic
#C170D6 #D68E70 #85D670 #70B8D6
square
#C170D6 #D68E70 #85D670 #70B8D6
split-complementary
#C170D6 #B8D670 #70D68E
monochromatic
#872D9E #AC40C8 #C170D6 #D6A0E4 #EACFF1

Accessibility & contrast

On white

3.20
#C170D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#C170D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170D6
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170D6#FFFFFF#000000##000000
##C170D61.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8ADA
Deuteranopia (green-blind)
#7693D3
Tritanopia (blue-blind)
#C27E99
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #c170d6;
/* rgb */ color: rgb(193, 112, 214);
/* oklch */ color: oklch(67.2% 0.167 319.1);
Tailwind
colors: {
  custom: {
    50: '#d69be3',
    500: '#c170d6',
    950: '#000000',
  },
}
SCSS
$custom: #c170d6;
$custom-light: #d69be3;
$custom-dark: #000000;
JSON
{
  "hex": "#c170d6",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 214
  },
  "hsl": {
    "h": 287.647,
    "s": 55.435,
    "l": 63.922
  },
  "oklch": {
    "l": 0.67242,
    "c": 0.16694,
    "h": 319.1
  },
  "luminance": 0.27781
}

Semantic roles & 50–950 ramp

primary
#C170D6
secondary
#C6E3BF
accent
#C32344
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #C170D6

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

Preview Lab → · Contrast checker → · Palette generator →

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