#C171CC#C171CC

#C171CC is a light, vivid purple. Relative luminance 0.275; OKLCH L 66.9% C 0.155 H 322.6°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#C171CC
RGBrgb(193, 113, 204)
HSLhsl(293, 47%, 62%)
HSVhsv(293, 45%, 80%)
CMYKcmyk(5.4%, 44.6%, 0%, 20%)
CIE-LABlab(59.44, 45.71, -34.24)
CIE-LCHlch(59.44, 57.11, 323.16°)
OKLaboklab(66.91% 0.1232 -0.0942)
OKLCHoklch(66.91% 0.155 322.6)
XYZxyz(38.7954, 27.5089, 60.3812)
Luminance0.2751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C171CC #7CCC71
analogous
#9471CC #C171CC #CC71AA
triadic
#C171CC #CCC171 #71CCC1
tetradic
#C171CC #CC9471 #7CCC71 #71AACC
square
#C171CC #CC9471 #7CCC71 #71AACC
split-complementary
#C171CC #AACC71 #71CC94
monochromatic
#84338F #AD44BC #C171CC #D59EDC #E8CBEC

Accessibility & contrast

On white

3.23
#C171CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#C171CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C171CC
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C171CC#FFFFFF#000000##000000
##C171CC1.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6589CF
Deuteranopia (green-blind)
#7C92C9
Tritanopia (blue-blind)
#C47C95
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #c171cc;
/* rgb */ color: rgb(193, 113, 204);
/* oklch */ color: oklch(66.9% 0.155 322.6);
Tailwind
colors: {
  custom: {
    50: '#d59cdc',
    500: '#c171cc',
    950: '#000000',
  },
}
SCSS
$custom: #c171cc;
$custom-light: #d59cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#c171cc",
  "rgb": {
    "r": 193,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 292.747,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.66909,
    "c": 0.15504,
    "h": 322.6
  },
  "luminance": 0.27507
}

Semantic roles & 50–950 ramp

primary
#C171CC
secondary
#C0DDBC
accent
#BA2B3C
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #C171CC

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

Preview Lab → · Contrast checker → · Palette generator →

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