#C170EA#C170EA

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

Color values

HEX#C170EA
RGBrgb(193, 112, 234)
HSLhsl(280, 74%, 68%)
HSVhsv(280, 52%, 92%)
CMYKcmyk(17.5%, 52.1%, 0%, 8.2%)
CIE-LABlab(60.66, 52.30, -49.15)
CIE-LCHlch(60.66, 71.77, 316.78°)
OKLaboklab(68.28% 0.1285 -0.1373)
OKLCHoklch(68.28% 0.188 313.1)
XYZxyz(42.6353, 28.8674, 81.1520)
Luminance0.2887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170EA #99EA70
analogous
#8470EA #C170EA #EA70D6
triadic
#C170EA #EAC170 #70EAC1
tetradic
#C170EA #EA8470 #99EA70 #70D6EA
square
#C170EA #EA8470 #99EA70 #70D6EA
split-complementary
#C170EA #D6EA70 #70EA84
monochromatic
#8B1DC3 #AA3BE2 #C170EA #D8A5F2 #EFDBFA

Accessibility & contrast

On white

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

On black

6.77
#C170EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170EA
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170EA#FFFFFF#000000##000000
##C170EA1.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c170ea;
/* rgb */ color: rgb(193, 112, 234);
/* oklch */ color: oklch(68.3% 0.188 313.1);
Tailwind
colors: {
  custom: {
    50: '#d69cf1',
    500: '#c170ea',
    950: '#000000',
  },
}
SCSS
$custom: #c170ea;
$custom-light: #d69cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#c170ea",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 234
  },
  "hsl": {
    "h": 279.836,
    "s": 74.39,
    "l": 67.843
  },
  "oklch": {
    "l": 0.6828,
    "c": 0.18804,
    "h": 313.1
  },
  "luminance": 0.28866
}

Semantic roles & 50–950 ramp

primary
#C170EA
secondary
#D5EEC8
accent
#D70F52
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170EA

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

Preview Lab → · Contrast checker → · Palette generator →

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