#C170D7#C170D7

#C170D7 is a light, vivid purple. Relative luminance 0.278; OKLCH L 67.3% C 0.168 H 318.8°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#C170D7
RGBrgb(193, 112, 215)
HSLhsl(287, 56%, 64%)
HSVhsv(287, 48%, 84%)
CMYKcmyk(10.2%, 47.9%, 0%, 15.7%)
CIE-LABlab(59.74, 48.40, -39.98)
CIE-LCHlch(59.74, 62.78, 320.44°)
OKLaboklab(67.29% 0.1263 -0.1107)
OKLCHoklch(67.29% 0.168 318.8)
XYZxyz(40.0506, 27.8335, 67.5395)
Luminance0.2783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170D7 #86D770
analogous
#8E70D7 #C170D7 #D770BA
triadic
#C170D7 #D7C170 #70D7C1
tetradic
#C170D7 #D78E70 #86D770 #70BAD7
square
#C170D7 #D78E70 #86D770 #70BAD7
split-complementary
#C170D7 #BAD770 #70D78E
monochromatic
#872DA0 #AC40CA #C170D7 #D6A0E4 #EAD0F2

Accessibility & contrast

On white

3.20
#C170D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#C170D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170D7
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170D7#FFFFFF#000000##000000
##C170D71.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8ADB
Deuteranopia (green-blind)
#7693D4
Tritanopia (blue-blind)
#C17E9A
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #c170d7;
/* rgb */ color: rgb(193, 112, 215);
/* oklch */ color: oklch(67.3% 0.168 318.8);
Tailwind
colors: {
  custom: {
    50: '#d69be3',
    500: '#c170d7',
    950: '#000000',
  },
}
SCSS
$custom: #c170d7;
$custom-light: #d69be3;
$custom-dark: #000000;
JSON
{
  "hex": "#c170d7",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 215
  },
  "hsl": {
    "h": 287.184,
    "s": 56.284,
    "l": 64.118
  },
  "oklch": {
    "l": 0.67292,
    "c": 0.16797,
    "h": 318.8
  },
  "luminance": 0.27832
}

Semantic roles & 50–950 ramp

primary
#C170D7
secondary
#C7E3BF
accent
#C42244
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #C170D7

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

Preview Lab → · Contrast checker → · Palette generator →

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