#C170DD#C170DD

#C170DD is a light, vivid purple. Relative luminance 0.281; OKLCH L 67.6% C 0.174 H 316.9°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#C170DD
RGBrgb(193, 112, 221)
HSLhsl(285, 62%, 65%)
HSVhsv(285, 49%, 87%)
CMYKcmyk(12.7%, 49.3%, 0%, 13.3%)
CIE-LABlab(60.02, 49.61, -42.91)
CIE-LCHlch(60.02, 65.59, 319.14°)
OKLaboklab(67.6% 0.1271 -0.1191)
OKLCHoklch(67.6% 0.174 316.9)
XYZxyz(40.8357, 28.1476, 71.6745)
Luminance0.2815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170DD #8CDD70
analogous
#8A70DD #C170DD #DD70C3
triadic
#C170DD #DDC170 #70DDC1
tetradic
#C170DD #DD8A70 #8CDD70 #70C3DD
square
#C170DD #DD8A70 #8CDD70 #70C3DD
split-complementary
#C170DD #C3DD70 #70DD8A
monochromatic
#8928AA #AC3FD1 #C170DD #D6A1E9 #ECD3F5

Accessibility & contrast

On white

3.17
#C170DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#C170DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170DD
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170DD#FFFFFF#000000##000000
##C170DD1.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B8BE1
Deuteranopia (green-blind)
#7393DA
Tritanopia (blue-blind)
#C0809C
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #c170dd;
/* rgb */ color: rgb(193, 112, 221);
/* oklch */ color: oklch(67.6% 0.174 316.9);
Tailwind
colors: {
  custom: {
    50: '#d69be8',
    500: '#c170dd',
    950: '#000000',
  },
}
SCSS
$custom: #c170dd;
$custom-light: #d69be8;
$custom-dark: #000000;
JSON
{
  "hex": "#c170dd",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 221
  },
  "hsl": {
    "h": 284.587,
    "s": 61.582,
    "l": 65.294
  },
  "oklch": {
    "l": 0.67595,
    "c": 0.17424,
    "h": 316.9
  },
  "luminance": 0.28146
}

Semantic roles & 50–950 ramp

primary
#C170DD
secondary
#CBE7C2
accent
#C91C49
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C170DD

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

Preview Lab → · Contrast checker → · Palette generator →

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