#C170D8#C170D8

#C170D8 is a light, vivid purple. Relative luminance 0.279; OKLCH L 67.3% C 0.169 H 318.4°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#C170D8
RGBrgb(193, 112, 216)
HSLhsl(287, 57%, 64%)
HSVhsv(287, 48%, 85%)
CMYKcmyk(10.6%, 48.1%, 0%, 15.3%)
CIE-LABlab(59.78, 48.60, -40.47)
CIE-LCHlch(59.78, 63.24, 320.21°)
OKLaboklab(67.34% 0.1265 -0.1121)
OKLCHoklch(67.34% 0.169 318.4)
XYZxyz(40.1795, 27.8851, 68.2183)
Luminance0.2788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170D8 #87D870
analogous
#8D70D8 #C170D8 #D870BB
triadic
#C170D8 #D8C170 #70D8C1
tetradic
#C170D8 #D88D70 #87D870 #70BBD8
square
#C170D8 #D88D70 #87D870 #70BBD8
split-complementary
#C170D8 #BBD870 #70D88D
monochromatic
#882CA2 #AC40CB #C170D8 #D6A0E5 #EBD0F2

Accessibility & contrast

On white

3.19
#C170D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#C170D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170D8
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170D8#FFFFFF#000000##000000
##C170D81.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8BDC
Deuteranopia (green-blind)
#7593D5
Tritanopia (blue-blind)
#C17E9A
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #c170d8;
/* rgb */ color: rgb(193, 112, 216);
/* oklch */ color: oklch(67.3% 0.169 318.4);
Tailwind
colors: {
  custom: {
    50: '#d69be4',
    500: '#c170d8',
    950: '#000000',
  },
}
SCSS
$custom: #c170d8;
$custom-light: #d69be4;
$custom-dark: #000000;
JSON
{
  "hex": "#c170d8",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 216
  },
  "hsl": {
    "h": 286.731,
    "s": 57.143,
    "l": 64.314
  },
  "oklch": {
    "l": 0.67342,
    "c": 0.16901,
    "h": 318.4
  },
  "luminance": 0.27884
}

Semantic roles & 50–950 ramp

primary
#C170D8
secondary
#C8E4C0
accent
#C52145
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E15
muted
#837E84

Preview Lab

Preview with #C170D8

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

Preview Lab → · Contrast checker → · Palette generator →

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