#C170D5#C170D5

#C170D5 is a light, vivid purple. Relative luminance 0.277; OKLCH L 67.2% C 0.166 H 319.4°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#C170D5
RGBrgb(193, 112, 213)
HSLhsl(288, 55%, 64%)
HSVhsv(288, 47%, 84%)
CMYKcmyk(9.4%, 47.4%, 0%, 16.5%)
CIE-LABlab(59.65, 48.00, -39.00)
CIE-LCHlch(59.65, 61.85, 320.90°)
OKLaboklab(67.19% 0.1261 -0.1079)
OKLCHoklch(67.19% 0.166 319.4)
XYZxyz(39.7952, 27.7313, 66.1943)
Luminance0.2773 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170D5 #84D570
analogous
#8E70D5 #C170D5 #D570B6
triadic
#C170D5 #D5C170 #70D5C1
tetradic
#C170D5 #D58E70 #84D570 #70B6D5
square
#C170D5 #D58E70 #84D570 #70B6D5
split-complementary
#C170D5 #B6D570 #70D58E
monochromatic
#872E9D #AC41C7 #C170D5 #D69FE3 #EACFF1

Accessibility & contrast

On white

3.21
#C170D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#C170D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170D5
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170D5#FFFFFF#000000##000000
##C170D51.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8AD8
Deuteranopia (green-blind)
#7793D2
Tritanopia (blue-blind)
#C27E99
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #c170d5;
/* rgb */ color: rgb(193, 112, 213);
/* oklch */ color: oklch(67.2% 0.166 319.4);
Tailwind
colors: {
  custom: {
    50: '#d69be2',
    500: '#c170d5',
    950: '#000000',
  },
}
SCSS
$custom: #c170d5;
$custom-light: #d69be2;
$custom-dark: #000000;
JSON
{
  "hex": "#c170d5",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 213
  },
  "hsl": {
    "h": 288.119,
    "s": 54.595,
    "l": 63.725
  },
  "oklch": {
    "l": 0.67193,
    "c": 0.16591,
    "h": 319.4
  },
  "luminance": 0.2773
}

Semantic roles & 50–950 ramp

primary
#C170D5
secondary
#C6E2BF
accent
#C22343
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #C170D5

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

Preview Lab → · Contrast checker → · Palette generator →

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