#C170CD#C170CD

#C170CD is a light, vivid purple. Relative luminance 0.273; OKLCH L 66.8% C 0.158 H 322.3°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#C170CD
RGBrgb(193, 112, 205)
HSLhsl(292, 48%, 62%)
HSVhsv(292, 45%, 80%)
CMYKcmyk(5.9%, 45.4%, 0%, 19.6%)
CIE-LABlab(59.28, 46.43, -35.06)
CIE-LCHlch(59.28, 58.18, 322.94°)
OKLaboklab(66.81% 0.1248 -0.0965)
OKLCHoklch(66.81% 0.158 322.3)
XYZxyz(38.8047, 27.3352, 60.9779)
Luminance0.2733 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170CD #7CCD70
analogous
#9370CD #C170CD #CD70AB
triadic
#C170CD #CDC170 #70CDC1
tetradic
#C170CD #CD9370 #7CCD70 #70ABCD
square
#C170CD #CD9370 #7CCD70 #70ABCD
split-complementary
#C170CD #ABCD70 #70CD93
monochromatic
#843290 #AD43BD #C170CD #D59DDD #E8CBED

Accessibility & contrast

On white

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

On black

6.47
#C170CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170CD
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170CD#FFFFFF#000000##000000
##C170CD1.003.256.476.47
#FFFFFF3.251.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6489D0
Deuteranopia (green-blind)
#7A92CA
Tritanopia (blue-blind)
#C37B95
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #c170cd;
/* rgb */ color: rgb(193, 112, 205);
/* oklch */ color: oklch(66.8% 0.158 322.3);
Tailwind
colors: {
  custom: {
    50: '#d59bdc',
    500: '#c170cd',
    950: '#000000',
  },
}
SCSS
$custom: #c170cd;
$custom-light: #d59bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#c170cd",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 205
  },
  "hsl": {
    "h": 292.258,
    "s": 48.187,
    "l": 62.157
  },
  "oklch": {
    "l": 0.66805,
    "c": 0.15774,
    "h": 322.3
  },
  "luminance": 0.27334
}

Semantic roles & 50–950 ramp

primary
#C170CD
secondary
#C0DDBB
accent
#BB2A3D
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #C170CD

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

Preview Lab → · Contrast checker → · Palette generator →

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