#C170DF#C170DF

#C170DF is a light, vivid purple. Relative luminance 0.283; OKLCH L 67.7% C 0.176 H 316.2°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#C170DF
RGBrgb(193, 112, 223)
HSLhsl(284, 63%, 66%)
HSVhsv(284, 50%, 87%)
CMYKcmyk(13.5%, 49.8%, 0%, 12.5%)
CIE-LABlab(60.12, 50.01, -43.88)
CIE-LCHlch(60.12, 66.53, 318.74°)
OKLaboklab(67.7% 0.1274 -0.1219)
OKLCHoklch(67.7% 0.176 316.2)
XYZxyz(41.1038, 28.2548, 73.0862)
Luminance0.2825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170DF #8EDF70
analogous
#8970DF #C170DF #DF70C5
triadic
#C170DF #DFC170 #70DFC1
tetradic
#C170DF #DF8970 #8EDF70 #70C5DF
square
#C170DF #DF8970 #8EDF70 #70C5DF
split-complementary
#C170DF #C5DF70 #70DF89
monochromatic
#8927AE #AB3ED4 #C170DF #D7A2EA #ECD4F5

Accessibility & contrast

On white

3.16
#C170DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#C170DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170DF
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170DF#FFFFFF#000000##000000
##C170DF1.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#598CE3
Deuteranopia (green-blind)
#7293DC
Tritanopia (blue-blind)
#C0819D
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #c170df;
/* rgb */ color: rgb(193, 112, 223);
/* oklch */ color: oklch(67.7% 0.176 316.2);
Tailwind
colors: {
  custom: {
    50: '#d69ce9',
    500: '#c170df',
    950: '#000000',
  },
}
SCSS
$custom: #c170df;
$custom-light: #d69ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#c170df",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 223
  },
  "hsl": {
    "h": 283.784,
    "s": 63.429,
    "l": 65.686
  },
  "oklch": {
    "l": 0.67698,
    "c": 0.17634,
    "h": 316.2
  },
  "luminance": 0.28254
}

Semantic roles & 50–950 ramp

primary
#C170DF
secondary
#CDE8C3
accent
#CB1A4A
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C170DF

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

Preview Lab → · Contrast checker → · Palette generator →

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