#C170E7#C170E7

#C170E7 is a light, vivid purple. Relative luminance 0.287; OKLCH L 68.1% C 0.185 H 313.9°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#C170E7
RGBrgb(193, 112, 231)
HSLhsl(281, 71%, 67%)
HSVhsv(281, 52%, 91%)
CMYKcmyk(16.5%, 51.5%, 0%, 9.4%)
CIE-LABlab(60.51, 51.67, -47.72)
CIE-LCHlch(60.51, 70.34, 317.27°)
OKLaboklab(68.12% 0.1282 -0.1331)
OKLCHoklch(68.12% 0.185 313.9)
XYZxyz(42.2079, 28.6964, 78.9014)
Luminance0.2869 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170E7 #96E770
analogous
#8570E7 #C170E7 #E770D2
triadic
#C170E7 #E7C170 #70E7C1
tetradic
#C170E7 #E78570 #96E770 #70D2E7
square
#C170E7 #E78570 #96E770 #70D2E7
split-complementary
#C170E7 #D2E770 #70E785
monochromatic
#8B20BD #AA3CDE #C170E7 #D8A4F0 #EED9F9

Accessibility & contrast

On white

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

On black

6.74
#C170E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170E7
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170E7#FFFFFF#000000##000000
##C170E71.003.126.746.74
#FFFFFF3.121.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c170e7;
/* rgb */ color: rgb(193, 112, 231);
/* oklch */ color: oklch(68.1% 0.185 313.9);
Tailwind
colors: {
  custom: {
    50: '#d69cef',
    500: '#c170e7',
    950: '#000000',
  },
}
SCSS
$custom: #c170e7;
$custom-light: #d69cef;
$custom-dark: #000000;
JSON
{
  "hex": "#c170e7",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 231
  },
  "hsl": {
    "h": 280.84,
    "s": 71.257,
    "l": 67.255
  },
  "oklch": {
    "l": 0.68118,
    "c": 0.18483,
    "h": 313.9
  },
  "luminance": 0.28695
}

Semantic roles & 50–950 ramp

primary
#C170E7
secondary
#D3ECC7
accent
#D31250
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C170E7

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

Preview Lab → · Contrast checker → · Palette generator →

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