#C171C8#C171C8

#C171C8 is a light, vivid purple. Relative luminance 0.273; OKLCH L 66.7% C 0.151 H 324.1°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#C171C8
RGBrgb(193, 113, 200)
HSLhsl(295, 44%, 61%)
HSVhsv(295, 44%, 78%)
CMYKcmyk(3.5%, 43.5%, 0%, 21.6%)
CIE-LABlab(59.27, 44.94, -32.25)
CIE-LCHlch(59.27, 55.32, 324.34°)
OKLaboklab(66.72% 0.1224 -0.0885)
OKLCHoklch(66.72% 0.151 324.1)
XYZxyz(38.3218, 27.3195, 57.8870)
Luminance0.2732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C171C8 #78C871
analogous
#9671C8 #C171C8 #C871A4
triadic
#C171C8 #C8C171 #71C8C1
tetradic
#C171C8 #C89671 #78C871 #71A4C8
square
#C171C8 #C89671 #78C871 #71A4C8
split-complementary
#C171C8 #A4C871 #71C896
monochromatic
#833589 #AD46B6 #C171C8 #D49DD9 #E8C9EA

Accessibility & contrast

On white

3.25
#C171C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#C171C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C171C8
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C171C8#FFFFFF#000000##000000
##C171C81.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6789CB
Deuteranopia (green-blind)
#7D92C5
Tritanopia (blue-blind)
#C47B93
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #c171c8;
/* rgb */ color: rgb(193, 113, 200);
/* oklch */ color: oklch(66.7% 0.151 324.1);
Tailwind
colors: {
  custom: {
    50: '#d59cd9',
    500: '#c171c8',
    950: '#000000',
  },
}
SCSS
$custom: #c171c8;
$custom-light: #d59cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#c171c8",
  "rgb": {
    "r": 193,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 295.172,
    "s": 44.162,
    "l": 61.373
  },
  "oklch": {
    "l": 0.66723,
    "c": 0.15104,
    "h": 324.1
  },
  "luminance": 0.27318
}

Semantic roles & 50–950 ramp

primary
#C171C8
secondary
#BDDBBA
accent
#B72E39
background
#FDF9FD
surface
#FAF2FA
border
#D3CCD3
text
#140E14
muted
#837E83

Preview Lab

Preview with #C171C8

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

Preview Lab → · Contrast checker → · Palette generator →

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