#C170EE#C170EE

#C170EE is a light, vivid violet. Relative luminance 0.291; OKLCH L 68.5% C 0.192 H 312.0°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#C170EE
RGBrgb(193, 112, 238)
HSLhsl(279, 79%, 69%)
HSVhsv(279, 53%, 93%)
CMYKcmyk(18.9%, 52.9%, 0%, 6.7%)
CIE-LABlab(60.87, 53.15, -51.05)
CIE-LCHlch(60.87, 73.69, 316.15°)
OKLaboklab(68.5% 0.1288 -0.1428)
OKLCHoklch(68.5% 0.192 312)
XYZxyz(43.2164, 29.0998, 84.2126)
Luminance0.2910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170EE #9DEE70
analogous
#8270EE #C170EE #EE70DC
triadic
#C170EE #EEC170 #70EEC1
tetradic
#C170EE #EE8270 #9DEE70 #70DCEE
square
#C170EE #EE8270 #9DEE70 #70DCEE
split-complementary
#C170EE #DCEE70 #70EE82
monochromatic
#8B18CB #A939E7 #C170EE #D9A7F5 #F0DDFB

Accessibility & contrast

On white

3.08
#C170EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#C170EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170EE
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170EE#FFFFFF#000000##000000
##C170EE1.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8FF2
Deuteranopia (green-blind)
#6995EB
Tritanopia (blue-blind)
#BC85A5
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c170ee;
/* rgb */ color: rgb(193, 112, 238);
/* oklch */ color: oklch(68.5% 0.192 312.0);
Tailwind
colors: {
  custom: {
    50: '#d69cf4',
    500: '#c170ee',
    950: '#000000',
  },
}
SCSS
$custom: #c170ee;
$custom-light: #d69cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#c170ee",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 238
  },
  "hsl": {
    "h": 278.571,
    "s": 78.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.68497,
    "c": 0.19232,
    "h": 312
  },
  "luminance": 0.29099
}

Semantic roles & 50–950 ramp

primary
#C170EE
secondary
#D8F0CA
accent
#DB0A55
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170EE

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

Preview Lab → · Contrast checker → · Palette generator →

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