#C170EB#C170EB

#C170EB is a light, vivid violet. Relative luminance 0.289; OKLCH L 68.3% C 0.189 H 312.8°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#C170EB
RGBrgb(193, 112, 235)
HSLhsl(280, 75%, 68%)
HSVhsv(280, 52%, 92%)
CMYKcmyk(17.9%, 52.3%, 0%, 7.8%)
CIE-LABlab(60.72, 52.51, -49.63)
CIE-LCHlch(60.72, 72.25, 316.62°)
OKLaboklab(68.33% 0.1286 -0.1387)
OKLCHoklch(68.33% 0.189 312.8)
XYZxyz(42.7793, 28.9250, 81.9107)
Luminance0.2892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170EB #9AEB70
analogous
#8370EB #C170EB #EB70D8
triadic
#C170EB #EBC170 #70EBC1
tetradic
#C170EB #EB8370 #9AEB70 #70D8EB
square
#C170EB #EB8370 #9AEB70 #70D8EB
split-complementary
#C170EB #D8EB70 #70EB83
monochromatic
#8B1CC5 #AA3AE3 #C170EB #D8A6F3 #F0DBFA

Accessibility & contrast

On white

3.10
#C170EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.78
#C170EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170EB
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170EB#FFFFFF#000000##000000
##C170EB1.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#518EEF
Deuteranopia (green-blind)
#6B94E8
Tritanopia (blue-blind)
#BD84A3
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #c170eb;
/* rgb */ color: rgb(193, 112, 235);
/* oklch */ color: oklch(68.3% 0.189 312.8);
Tailwind
colors: {
  custom: {
    50: '#d69cf2',
    500: '#c170eb',
    950: '#000000',
  },
}
SCSS
$custom: #c170eb;
$custom-light: #d69cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#c170eb",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 235
  },
  "hsl": {
    "h": 279.512,
    "s": 75.46,
    "l": 68.039
  },
  "oklch": {
    "l": 0.68334,
    "c": 0.1891,
    "h": 312.8
  },
  "luminance": 0.28924
}

Semantic roles & 50–950 ramp

primary
#C170EB
secondary
#D5EEC9
accent
#D80E53
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170EB

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

Preview Lab → · Contrast checker → · Palette generator →

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