#C171E4#C171E4

#C171E4 is a light, vivid purple. Relative luminance 0.287; OKLCH L 68.1% C 0.180 H 314.7°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#C171E4
RGBrgb(193, 113, 228)
HSLhsl(282, 68%, 67%)
HSVhsv(282, 50%, 89%)
CMYKcmyk(15.4%, 50.4%, 0%, 10.6%)
CIE-LABlab(60.56, 50.53, -45.97)
CIE-LCHlch(60.56, 68.31, 317.70°)
OKLaboklab(68.11% 0.1266 -0.128)
OKLCHoklch(68.11% 0.18 314.7)
XYZxyz(41.8988, 28.7503, 76.7260)
Luminance0.2875 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C171E4 #94E471
analogous
#8871E4 #C171E4 #E471CE
triadic
#C171E4 #E4C171 #71E4C1
tetradic
#C171E4 #E48871 #94E471 #71CEE4
square
#C171E4 #E48871 #94E471 #71CEE4
split-complementary
#C171E4 #CEE471 #71E488
monochromatic
#8A23B8 #AB3EDA #C171E4 #D7A4EE #EED8F8

Accessibility & contrast

On white

3.11
#C171E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#C171E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C171E4
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C171E4#FFFFFF#000000##000000
##C171E41.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#578DE8
Deuteranopia (green-blind)
#7094E1
Tritanopia (blue-blind)
#BF83A0
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #c171e4;
/* rgb */ color: rgb(193, 113, 228);
/* oklch */ color: oklch(68.1% 0.180 314.7);
Tailwind
colors: {
  custom: {
    50: '#d69ced',
    500: '#c171e4',
    950: '#000000',
  },
}
SCSS
$custom: #c171e4;
$custom-light: #d69ced;
$custom-dark: #000000;
JSON
{
  "hex": "#c171e4",
  "rgb": {
    "r": 193,
    "g": 113,
    "b": 228
  },
  "hsl": {
    "h": 281.739,
    "s": 68.047,
    "l": 66.863
  },
  "oklch": {
    "l": 0.68105,
    "c": 0.18005,
    "h": 314.7
  },
  "luminance": 0.28749
}

Semantic roles & 50–950 ramp

primary
#C171E4
secondary
#D1EBC6
accent
#D0164E
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C171E4

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

Preview Lab → · Contrast checker → · Palette generator →

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