#C170D3#C170D3

#C170D3 is a light, vivid purple. Relative luminance 0.276; OKLCH L 67.1% C 0.164 H 320.1°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#C170D3
RGBrgb(193, 112, 211)
HSLhsl(289, 53%, 63%)
HSVhsv(289, 47%, 83%)
CMYKcmyk(8.5%, 46.9%, 0%, 17.3%)
CIE-LABlab(59.55, 47.60, -38.02)
CIE-LCHlch(59.55, 60.92, 321.38°)
OKLaboklab(67.1% 0.1258 -0.105)
OKLCHoklch(67.1% 0.164 320.1)
XYZxyz(39.5429, 27.6304, 64.8656)
Luminance0.2763 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170D3 #82D370
analogous
#8F70D3 #C170D3 #D370B3
triadic
#C170D3 #D3C170 #70D3C1
tetradic
#C170D3 #D38F70 #82D370 #70B3D3
square
#C170D3 #D38F70 #82D370 #70B3D3
split-complementary
#C170D3 #B3D370 #70D38F
monochromatic
#862F99 #AD41C5 #C170D3 #D59FE1 #EACEF0

Accessibility & contrast

On white

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

On black

6.53
#C170D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170D3
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170D3#FFFFFF#000000##000000
##C170D31.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#618AD6
Deuteranopia (green-blind)
#7892D0
Tritanopia (blue-blind)
#C27D98
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #c170d3;
/* rgb */ color: rgb(193, 112, 211);
/* oklch */ color: oklch(67.1% 0.164 320.1);
Tailwind
colors: {
  custom: {
    50: '#d59be1',
    500: '#c170d3',
    950: '#000000',
  },
}
SCSS
$custom: #c170d3;
$custom-light: #d59be1;
$custom-dark: #000000;
JSON
{
  "hex": "#c170d3",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 211
  },
  "hsl": {
    "h": 289.091,
    "s": 52.941,
    "l": 63.333
  },
  "oklch": {
    "l": 0.67095,
    "c": 0.16384,
    "h": 320.1
  },
  "luminance": 0.27629
}

Semantic roles & 50–950 ramp

primary
#C170D3
secondary
#C4E1BE
accent
#C02541
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #C170D3

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

Preview Lab → · Contrast checker → · Palette generator →

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