#C170E8#C170E8

#C170E8 is a light, vivid purple. Relative luminance 0.288; OKLCH L 68.2% C 0.186 H 313.7°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#C170E8
RGBrgb(193, 112, 232)
HSLhsl(281, 72%, 67%)
HSVhsv(281, 52%, 91%)
CMYKcmyk(16.8%, 51.7%, 0%, 9%)
CIE-LABlab(60.56, 51.88, -48.20)
CIE-LCHlch(60.56, 70.81, 317.11°)
OKLaboklab(68.17% 0.1283 -0.1345)
OKLCHoklch(68.17% 0.186 313.7)
XYZxyz(42.3496, 28.7531, 79.6473)
Luminance0.2875 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170E8 #97E870
analogous
#8570E8 #C170E8 #E870D3
triadic
#C170E8 #E8C170 #70E8C1
tetradic
#C170E8 #E88570 #97E870 #70D3E8
square
#C170E8 #E88570 #97E870 #70D3E8
split-complementary
#C170E8 #D3E870 #70E885
monochromatic
#8B1FBF #AA3BE0 #C170E8 #D8A5F0 #EFD9F9

Accessibility & contrast

On white

3.11
#C170E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#C170E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170E8
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170E8#FFFFFF#000000##000000
##C170E81.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#538EEC
Deuteranopia (green-blind)
#6C94E5
Tritanopia (blue-blind)
#BE83A2
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #c170e8;
/* rgb */ color: rgb(193, 112, 232);
/* oklch */ color: oklch(68.2% 0.186 313.7);
Tailwind
colors: {
  custom: {
    50: '#d69cf0',
    500: '#c170e8',
    950: '#000000',
  },
}
SCSS
$custom: #c170e8;
$custom-light: #d69cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#c170e8",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 232
  },
  "hsl": {
    "h": 280.5,
    "s": 72.289,
    "l": 67.451
  },
  "oklch": {
    "l": 0.68172,
    "c": 0.1859,
    "h": 313.7
  },
  "luminance": 0.28752
}

Semantic roles & 50–950 ramp

primary
#C170E8
secondary
#D3EDC7
accent
#D41151
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C170E8

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

Preview Lab → · Contrast checker → · Palette generator →

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