#C170E6#C170E6

#C170E6 is a light, vivid purple. Relative luminance 0.286; OKLCH L 68.1% C 0.184 H 314.2°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#C170E6
RGBrgb(193, 112, 230)
HSLhsl(281, 70%, 67%)
HSVhsv(281, 51%, 90%)
CMYKcmyk(16.1%, 51.3%, 0%, 9.8%)
CIE-LABlab(60.46, 51.46, -47.24)
CIE-LCHlch(60.46, 69.86, 317.45°)
OKLaboklab(68.07% 0.1281 -0.1317)
OKLCHoklch(68.07% 0.184 314.2)
XYZxyz(42.0671, 28.6401, 78.1597)
Luminance0.2864 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170E6 #95E670
analogous
#8670E6 #C170E6 #E670D0
triadic
#C170E6 #E6C170 #70E6C1
tetradic
#C170E6 #E68670 #95E670 #70D0E6
square
#C170E6 #E68670 #95E670 #70D0E6
split-complementary
#C170E6 #D0E670 #70E686
monochromatic
#8B21BB #AA3CDD #C170E6 #D8A4EF #EED8F8

Accessibility & contrast

On white

3.12
#C170E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#C170E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170E6
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170E6#FFFFFF#000000##000000
##C170E61.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#548DEA
Deuteranopia (green-blind)
#6E94E3
Tritanopia (blue-blind)
#BE83A1
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #c170e6;
/* rgb */ color: rgb(193, 112, 230);
/* oklch */ color: oklch(68.1% 0.184 314.2);
Tailwind
colors: {
  custom: {
    50: '#d69cee',
    500: '#c170e6',
    950: '#000000',
  },
}
SCSS
$custom: #c170e6;
$custom-light: #d69cee;
$custom-dark: #000000;
JSON
{
  "hex": "#c170e6",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 230
  },
  "hsl": {
    "h": 281.186,
    "s": 70.238,
    "l": 67.059
  },
  "oklch": {
    "l": 0.68065,
    "c": 0.18377,
    "h": 314.2
  },
  "luminance": 0.28639
}

Semantic roles & 50–950 ramp

primary
#C170E6
secondary
#D2ECC6
accent
#D2134F
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C170E6

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

Preview Lab → · Contrast checker → · Palette generator →

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