#C170E5#C170E5

#C170E5 is a light, vivid purple. Relative luminance 0.286; OKLCH L 68.0% C 0.183 H 314.5°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#C170E5
RGBrgb(193, 112, 229)
HSLhsl(282, 69%, 67%)
HSVhsv(282, 51%, 90%)
CMYKcmyk(15.7%, 51.1%, 0%, 10.2%)
CIE-LABlab(60.41, 51.25, -46.76)
CIE-LCHlch(60.41, 69.38, 317.62°)
OKLaboklab(68.01% 0.128 -0.1303)
OKLCHoklch(68.01% 0.183 314.5)
XYZxyz(41.9271, 28.5841, 77.4222)
Luminance0.2858 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170E5 #94E570
analogous
#8670E5 #C170E5 #E570CF
triadic
#C170E5 #E5C170 #70E5C1
tetradic
#C170E5 #E58670 #94E570 #70CFE5
square
#C170E5 #E58670 #94E570 #70CFE5
split-complementary
#C170E5 #CFE570 #70E586
monochromatic
#8A22B9 #AB3CDC #C170E5 #D7A4EE #EED8F8

Accessibility & contrast

On white

3.13
#C170E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#C170E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170E5
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170E5#FFFFFF#000000##000000
##C170E51.003.136.726.72
#FFFFFF3.131.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#558DE9
Deuteranopia (green-blind)
#6E94E2
Tritanopia (blue-blind)
#BE82A0
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #c170e5;
/* rgb */ color: rgb(193, 112, 229);
/* oklch */ color: oklch(68.0% 0.183 314.5);
Tailwind
colors: {
  custom: {
    50: '#d69cee',
    500: '#c170e5',
    950: '#000000',
  },
}
SCSS
$custom: #c170e5;
$custom-light: #d69cee;
$custom-dark: #000000;
JSON
{
  "hex": "#c170e5",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 229
  },
  "hsl": {
    "h": 281.538,
    "s": 69.231,
    "l": 66.863
  },
  "oklch": {
    "l": 0.68012,
    "c": 0.1827,
    "h": 314.5
  },
  "luminance": 0.28583
}

Semantic roles & 50–950 ramp

primary
#C170E5
secondary
#D1EBC6
accent
#D1144E
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C170E5

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

Preview Lab → · Contrast checker → · Palette generator →

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