#C170E2#C170E2

#C170E2 is a light, vivid purple. Relative luminance 0.284; OKLCH L 67.9% C 0.180 H 315.4°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#C170E2
RGBrgb(193, 112, 226)
HSLhsl(283, 66%, 66%)
HSVhsv(283, 50%, 89%)
CMYKcmyk(14.6%, 50.4%, 0%, 11.4%)
CIE-LABlab(60.26, 50.63, -45.32)
CIE-LCHlch(60.26, 67.95, 318.17°)
OKLaboklab(67.85% 0.1277 -0.1262)
OKLCHoklch(67.85% 0.18 315.4)
XYZxyz(41.5118, 28.4180, 75.2352)
Luminance0.2842 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170E2 #91E270
analogous
#8870E2 #C170E2 #E270CA
triadic
#C170E2 #E2C170 #70E2C1
tetradic
#C170E2 #E28870 #91E270 #70CAE2
square
#C170E2 #E28870 #91E270 #70CAE2
split-complementary
#C170E2 #CAE270 #70E288
monochromatic
#8A24B3 #AB3DD8 #C170E2 #D7A3EC #EDD6F7

Accessibility & contrast

On white

3.14
#C170E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#C170E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170E2
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170E2#FFFFFF#000000##000000
##C170E21.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#578CE6
Deuteranopia (green-blind)
#7094DF
Tritanopia (blue-blind)
#BF819F
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #c170e2;
/* rgb */ color: rgb(193, 112, 226);
/* oklch */ color: oklch(67.9% 0.180 315.4);
Tailwind
colors: {
  custom: {
    50: '#d69ceb',
    500: '#c170e2',
    950: '#000000',
  },
}
SCSS
$custom: #c170e2;
$custom-light: #d69ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#c170e2",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 226
  },
  "hsl": {
    "h": 282.632,
    "s": 66.279,
    "l": 66.275
  },
  "oklch": {
    "l": 0.67854,
    "c": 0.17952,
    "h": 315.4
  },
  "luminance": 0.28417
}

Semantic roles & 50–950 ramp

primary
#C170E2
secondary
#CFEAC4
accent
#CE174C
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C170E2

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

Preview Lab → · Contrast checker → · Palette generator →

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