#C170E3#C170E3

#C170E3 is a light, vivid purple. Relative luminance 0.285; OKLCH L 67.9% C 0.181 H 315.1°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#C170E3
RGBrgb(193, 112, 227)
HSLhsl(282, 67%, 66%)
HSVhsv(282, 51%, 89%)
CMYKcmyk(15%, 50.7%, 0%, 11%)
CIE-LABlab(60.31, 50.84, -45.80)
CIE-LCHlch(60.31, 68.43, 317.98°)
OKLaboklab(67.91% 0.1278 -0.1275)
OKLCHoklch(67.91% 0.181 315.1)
XYZxyz(41.6494, 28.4730, 75.9600)
Luminance0.2847 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170E3 #92E370
analogous
#8870E3 #C170E3 #E370CC
triadic
#C170E3 #E3C170 #70E3C1
tetradic
#C170E3 #E38870 #92E370 #70CCE3
square
#C170E3 #E38870 #92E370 #70CCE3
split-complementary
#C170E3 #CCE370 #70E388
monochromatic
#8A23B5 #AB3DD9 #C170E3 #D7A3ED #EDD6F7

Accessibility & contrast

On white

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

On black

6.69
#C170E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170E3
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170E3#FFFFFF#000000##000000
##C170E31.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#578DE7
Deuteranopia (green-blind)
#6F94E0
Tritanopia (blue-blind)
#BF829F
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #c170e3;
/* rgb */ color: rgb(193, 112, 227);
/* oklch */ color: oklch(67.9% 0.181 315.1);
Tailwind
colors: {
  custom: {
    50: '#d69cec',
    500: '#c170e3',
    950: '#000000',
  },
}
SCSS
$custom: #c170e3;
$custom-light: #d69cec;
$custom-dark: #000000;
JSON
{
  "hex": "#c170e3",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 227
  },
  "hsl": {
    "h": 282.261,
    "s": 67.251,
    "l": 66.471
  },
  "oklch": {
    "l": 0.67906,
    "c": 0.18058,
    "h": 315.1
  },
  "luminance": 0.28472
}

Semantic roles & 50–950 ramp

primary
#C170E3
secondary
#D0EAC5
accent
#CF164D
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C170E3

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

Preview Lab → · Contrast checker → · Palette generator →

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