#C170ED#C170ED

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

Color values

HEX#C170ED
RGBrgb(193, 112, 237)
HSLhsl(279, 78%, 68%)
HSVhsv(279, 53%, 93%)
CMYKcmyk(18.6%, 52.7%, 0%, 7.1%)
CIE-LABlab(60.82, 52.93, -50.58)
CIE-LCHlch(60.82, 73.21, 316.30°)
OKLaboklab(68.44% 0.1287 -0.1414)
OKLCHoklch(68.44% 0.191 312.3)
XYZxyz(43.0699, 29.0412, 83.4410)
Luminance0.2904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170ED #9CED70
analogous
#8270ED #C170ED #ED70DA
triadic
#C170ED #EDC170 #70EDC1
tetradic
#C170ED #ED8270 #9CED70 #70DAED
square
#C170ED #ED8270 #9CED70 #70DAED
split-complementary
#C170ED #DAED70 #70ED82
monochromatic
#8B19C9 #A93AE6 #C170ED #D9A6F4 #F0DDFB

Accessibility & contrast

On white

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

On black

6.81
#C170ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170ED
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170ED#FFFFFF#000000##000000
##C170ED1.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8EF1
Deuteranopia (green-blind)
#6995EA
Tritanopia (blue-blind)
#BC85A4
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c170ed;
/* rgb */ color: rgb(193, 112, 237);
/* oklch */ color: oklch(68.4% 0.191 312.3);
Tailwind
colors: {
  custom: {
    50: '#d69cf3',
    500: '#c170ed',
    950: '#000000',
  },
}
SCSS
$custom: #c170ed;
$custom-light: #d69cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#c170ed",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 237
  },
  "hsl": {
    "h": 278.88,
    "s": 77.64,
    "l": 68.431
  },
  "oklch": {
    "l": 0.68443,
    "c": 0.19125,
    "h": 312.3
  },
  "luminance": 0.2904
}

Semantic roles & 50–950 ramp

primary
#C170ED
secondary
#D7EFCA
accent
#DA0C54
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170ED

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

Preview Lab → · Contrast checker → · Palette generator →

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