#C170E1#C170E1

#C170E1 is a light, vivid purple. Relative luminance 0.284; OKLCH L 67.8% C 0.178 H 315.6°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#C170E1
RGBrgb(193, 112, 225)
HSLhsl(283, 65%, 66%)
HSVhsv(283, 50%, 88%)
CMYKcmyk(14.2%, 50.2%, 0%, 11.8%)
CIE-LABlab(60.22, 50.42, -44.84)
CIE-LCHlch(60.22, 67.48, 318.35°)
OKLaboklab(67.8% 0.1276 -0.1247)
OKLCHoklch(67.8% 0.178 315.6)
XYZxyz(41.3750, 28.3633, 74.5147)
Luminance0.2836 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170E1 #90E170
analogous
#8870E1 #C170E1 #E170C8
triadic
#C170E1 #E1C170 #70E1C1
tetradic
#C170E1 #E18870 #90E170 #70C8E1
square
#C170E1 #E18870 #90E170 #70C8E1
split-complementary
#C170E1 #C8E170 #70E188
monochromatic
#8A25B1 #AB3DD6 #C170E1 #D7A3EC #EDD5F6

Accessibility & contrast

On white

3.15
#C170E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#C170E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170E1
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170E1#FFFFFF#000000##000000
##C170E11.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#588CE5
Deuteranopia (green-blind)
#7194DE
Tritanopia (blue-blind)
#BF819E
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #c170e1;
/* rgb */ color: rgb(193, 112, 225);
/* oklch */ color: oklch(67.8% 0.178 315.6);
Tailwind
colors: {
  custom: {
    50: '#d69ceb',
    500: '#c170e1',
    950: '#000000',
  },
}
SCSS
$custom: #c170e1;
$custom-light: #d69ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#c170e1",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 225
  },
  "hsl": {
    "h": 283.009,
    "s": 65.318,
    "l": 66.078
  },
  "oklch": {
    "l": 0.67802,
    "c": 0.17846,
    "h": 315.6
  },
  "luminance": 0.28362
}

Semantic roles & 50–950 ramp

primary
#C170E1
secondary
#CEE9C4
accent
#CD184C
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C170E1

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

Preview Lab → · Contrast checker → · Palette generator →

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