#C171EB#C171EB

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

Color values

HEX#C171EB
RGBrgb(193, 113, 235)
HSLhsl(279, 75%, 68%)
HSVhsv(279, 52%, 92%)
CMYKcmyk(17.9%, 51.9%, 0%, 7.8%)
CIE-LABlab(60.91, 52.00, -49.32)
CIE-LCHlch(60.91, 71.67, 316.51°)
OKLaboklab(68.48% 0.1273 -0.1378)
OKLCHoklch(68.48% 0.188 312.7)
XYZxyz(42.8903, 29.1469, 81.9477)
Luminance0.2915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C171EB #9BEB71
analogous
#8471EB #C171EB #EB71D8
triadic
#C171EB #EBC171 #71EBC1
tetradic
#C171EB #EB8471 #9BEB71 #71D8EB
square
#C171EB #EB8471 #9BEB71 #71D8EB
split-complementary
#C171EB #D8EB71 #71EB84
monochromatic
#8B1CC6 #AA3BE3 #C171EB #D8A7F3 #F0DCFA

Accessibility & contrast

On white

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

On black

6.83
#C171EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C171EB
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C171EB#FFFFFF#000000##000000
##C171EB1.003.086.836.83
#FFFFFF3.081.0021.0021.00
#0000006.8321.001.001.00
##0000006.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#528FEF
Deuteranopia (green-blind)
#6C95E8
Tritanopia (blue-blind)
#BD85A4
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c171eb;
/* rgb */ color: rgb(193, 113, 235);
/* oklch */ color: oklch(68.5% 0.188 312.7);
Tailwind
colors: {
  custom: {
    50: '#d69cf2',
    500: '#c171eb',
    950: '#000000',
  },
}
SCSS
$custom: #c171eb;
$custom-light: #d69cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#c171eb",
  "rgb": {
    "r": 193,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 279.344,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.68478,
    "c": 0.18755,
    "h": 312.7
  },
  "luminance": 0.29146
}

Semantic roles & 50–950 ramp

primary
#C171EB
secondary
#D6EEC9
accent
#D70E53
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C171EB

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

Preview Lab → · Contrast checker → · Palette generator →

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