#C170EF#C170EF

#C170EF is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.6% C 0.193 H 311.8°. Best body text is #000000 at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#C170EF
RGBrgb(193, 112, 239)
HSLhsl(278, 80%, 69%)
HSVhsv(278, 53%, 94%)
CMYKcmyk(19.2%, 53.1%, 0%, 6.3%)
CIE-LABlab(60.92, 53.36, -51.52)
CIE-LCHlch(60.92, 74.17, 316.00°)
OKLaboklab(68.55% 0.1289 -0.1442)
OKLCHoklch(68.55% 0.193 311.8)
XYZxyz(43.3637, 29.1587, 84.9885)
Luminance0.2916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170EF #9EEF70
analogous
#8270EF #C170EF #EF70DD
triadic
#C170EF #EFC170 #70EFC1
tetradic
#C170EF #EF8270 #9EEF70 #70DDEF
square
#C170EF #EF8270 #9EEF70 #70DDEF
split-complementary
#C170EF #DDEF70 #70EF82
monochromatic
#8B17CE #A939E9 #C170EF #D9A7F5 #F1DEFB

Accessibility & contrast

On white

3.07
#C170EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.83
#C170EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170EF
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170EF#FFFFFF#000000##000000
##C170EF1.003.076.836.83
#FFFFFF3.071.0021.0021.00
#0000006.8321.001.001.00
##0000006.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8FF3
Deuteranopia (green-blind)
#6895EC
Tritanopia (blue-blind)
#BC85A5
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c170ef;
/* rgb */ color: rgb(193, 112, 239);
/* oklch */ color: oklch(68.6% 0.193 311.8);
Tailwind
colors: {
  custom: {
    50: '#d69cf5',
    500: '#c170ef',
    950: '#000000',
  },
}
SCSS
$custom: #c170ef;
$custom-light: #d69cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#c170ef",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 239
  },
  "hsl": {
    "h": 278.268,
    "s": 79.874,
    "l": 68.824
  },
  "oklch": {
    "l": 0.68552,
    "c": 0.19339,
    "h": 311.8
  },
  "luminance": 0.29158
}

Semantic roles & 50–950 ramp

primary
#C170EF
secondary
#D8F0CB
accent
#DC0956
background
#FDF9FF
surface
#FBF2FE
border
#D4CCD6
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170EF

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

Preview Lab → · Contrast checker → · Palette generator →

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