#C171EA#C171EA

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

Color values

HEX#C171EA
RGBrgb(193, 113, 234)
HSLhsl(280, 74%, 68%)
HSVhsv(280, 52%, 92%)
CMYKcmyk(17.5%, 51.7%, 0%, 8.2%)
CIE-LABlab(60.86, 51.79, -48.84)
CIE-LCHlch(60.86, 71.19, 316.68°)
OKLaboklab(68.42% 0.1272 -0.1364)
OKLCHoklch(68.42% 0.186 313)
XYZxyz(42.7462, 29.0893, 81.1889)
Luminance0.2909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C171EA #9AEA71
analogous
#8471EA #C171EA #EA71D7
triadic
#C171EA #EAC171 #71EAC1
tetradic
#C171EA #EA8471 #9AEA71 #71D7EA
square
#C171EA #EA8471 #9AEA71 #71D7EA
split-complementary
#C171EA #D7EA71 #71EA84
monochromatic
#8B1DC4 #AA3CE2 #C171EA #D8A6F2 #F0DCFA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C171EA#FFFFFF#000000##000000
##C171EA1.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)
#538EEE
Deuteranopia (green-blind)
#6C95E7
Tritanopia (blue-blind)
#BD85A3
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c171ea;
/* rgb */ color: rgb(193, 113, 234);
/* oklch */ color: oklch(68.4% 0.186 313.0);
Tailwind
colors: {
  custom: {
    50: '#d69cf1',
    500: '#c171ea',
    950: '#000000',
  },
}
SCSS
$custom: #c171ea;
$custom-light: #d69cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#c171ea",
  "rgb": {
    "r": 193,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 279.669,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.68424,
    "c": 0.18648,
    "h": 313
  },
  "luminance": 0.29088
}

Semantic roles & 50–950 ramp

primary
#C171EA
secondary
#D5EEC9
accent
#D60F53
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C171EA

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

Preview Lab → · Contrast checker → · Palette generator →

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