#C170D2#C170D2

#C170D2 is a light, vivid purple. Relative luminance 0.276; OKLCH L 67.0% C 0.163 H 320.5°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#C170D2
RGBrgb(193, 112, 210)
HSLhsl(290, 52%, 63%)
HSVhsv(290, 47%, 82%)
CMYKcmyk(8.1%, 46.7%, 0%, 17.6%)
CIE-LABlab(59.51, 47.40, -37.53)
CIE-LCHlch(59.51, 60.46, 321.63°)
OKLaboklab(67.05% 0.1256 -0.1036)
OKLCHoklch(67.05% 0.163 320.5)
XYZxyz(39.4179, 27.5804, 64.2075)
Luminance0.2758 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170D2 #81D270
analogous
#9070D2 #C170D2 #D270B2
triadic
#C170D2 #D2C170 #70D2C1
tetradic
#C170D2 #D29070 #81D270 #70B2D2
square
#C170D2 #D29070 #81D270 #70B2D2
split-complementary
#C170D2 #B2D270 #70D290
monochromatic
#863098 #AD41C3 #C170D2 #D59FE1 #E9CDEF

Accessibility & contrast

On white

3.22
#C170D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#C170D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170D2
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170D2#FFFFFF#000000##000000
##C170D21.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#618AD5
Deuteranopia (green-blind)
#7892CF
Tritanopia (blue-blind)
#C27D97
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #c170d2;
/* rgb */ color: rgb(193, 112, 210);
/* oklch */ color: oklch(67.0% 0.163 320.5);
Tailwind
colors: {
  custom: {
    50: '#d59be0',
    500: '#c170d2',
    950: '#000000',
  },
}
SCSS
$custom: #c170d2;
$custom-light: #d59be0;
$custom-dark: #000000;
JSON
{
  "hex": "#c170d2",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 210
  },
  "hsl": {
    "h": 289.592,
    "s": 52.128,
    "l": 63.137
  },
  "oklch": {
    "l": 0.67046,
    "c": 0.16281,
    "h": 320.5
  },
  "luminance": 0.27579
}

Semantic roles & 50–950 ramp

primary
#C170D2
secondary
#C3E0BD
accent
#C02641
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #C170D2

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

Preview Lab → · Contrast checker → · Palette generator →

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