#C170EC#C170EC

#C170EC is a light, vivid violet. Relative luminance 0.290; OKLCH L 68.4% C 0.190 H 312.6°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#C170EC
RGBrgb(193, 112, 236)
HSLhsl(279, 77%, 68%)
HSVhsv(279, 53%, 93%)
CMYKcmyk(18.2%, 52.5%, 0%, 7.5%)
CIE-LABlab(60.77, 52.72, -50.10)
CIE-LCHlch(60.77, 72.73, 316.46°)
OKLaboklab(68.39% 0.1287 -0.14)
OKLCHoklch(68.39% 0.19 312.6)
XYZxyz(42.9242, 28.9829, 82.6737)
Luminance0.2898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170EC #9BEC70
analogous
#8370EC #C170EC #EC70D9
triadic
#C170EC #ECC170 #70ECC1
tetradic
#C170EC #EC8370 #9BEC70 #70D9EC
square
#C170EC #EC8370 #9BEC70 #70D9EC
split-complementary
#C170EC #D9EC70 #70EC83
monochromatic
#8B1AC7 #AA3AE5 #C170EC #D8A6F3 #F0DCFA

Accessibility & contrast

On white

3.09
#C170EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#C170EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170EC
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170EC#FFFFFF#000000##000000
##C170EC1.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#508EF0
Deuteranopia (green-blind)
#6A94E9
Tritanopia (blue-blind)
#BD85A4
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c170ec;
/* rgb */ color: rgb(193, 112, 236);
/* oklch */ color: oklch(68.4% 0.190 312.6);
Tailwind
colors: {
  custom: {
    50: '#d69cf3',
    500: '#c170ec',
    950: '#000000',
  },
}
SCSS
$custom: #c170ec;
$custom-light: #d69cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#c170ec",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 236
  },
  "hsl": {
    "h": 279.194,
    "s": 76.543,
    "l": 68.235
  },
  "oklch": {
    "l": 0.68388,
    "c": 0.19018,
    "h": 312.6
  },
  "luminance": 0.28982
}

Semantic roles & 50–950 ramp

primary
#C170EC
secondary
#D6EFC9
accent
#D90D53
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170EC

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

Preview Lab → · Contrast checker → · Palette generator →

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