#C170DE#C170DE

#C170DE is a light, vivid purple. Relative luminance 0.282; OKLCH L 67.6% C 0.175 H 316.6°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#C170DE
RGBrgb(193, 112, 222)
HSLhsl(284, 63%, 65%)
HSVhsv(284, 50%, 87%)
CMYKcmyk(13.1%, 49.5%, 0%, 12.9%)
CIE-LABlab(60.07, 49.81, -43.39)
CIE-LCHlch(60.07, 66.06, 318.94°)
OKLaboklab(67.65% 0.1273 -0.1205)
OKLCHoklch(67.65% 0.175 316.6)
XYZxyz(40.9694, 28.2010, 72.3783)
Luminance0.2820 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170DE #8DDE70
analogous
#8A70DE #C170DE #DE70C4
triadic
#C170DE #DEC170 #70DEC1
tetradic
#C170DE #DE8A70 #8DDE70 #70C4DE
square
#C170DE #DE8A70 #8DDE70 #70C4DE
split-complementary
#C170DE #C4DE70 #70DE8A
monochromatic
#8928AC #AB3ED3 #C170DE #D7A2E9 #ECD3F5

Accessibility & contrast

On white

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

On black

6.64
#C170DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170DE
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170DE#FFFFFF#000000##000000
##C170DE1.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A8CE2
Deuteranopia (green-blind)
#7293DB
Tritanopia (blue-blind)
#C0809D
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #c170de;
/* rgb */ color: rgb(193, 112, 222);
/* oklch */ color: oklch(67.6% 0.175 316.6);
Tailwind
colors: {
  custom: {
    50: '#d69ce9',
    500: '#c170de',
    950: '#000000',
  },
}
SCSS
$custom: #c170de;
$custom-light: #d69ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#c170de",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 222
  },
  "hsl": {
    "h": 284.182,
    "s": 62.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.67647,
    "c": 0.17529,
    "h": 316.6
  },
  "luminance": 0.282
}

Semantic roles & 50–950 ramp

primary
#C170DE
secondary
#CCE7C2
accent
#CA1B49
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C170DE

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

Preview Lab → · Contrast checker → · Palette generator →

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