#C170DB#C170DB

#C170DB is a light, vivid purple. Relative luminance 0.280; OKLCH L 67.5% C 0.172 H 317.5°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#C170DB
RGBrgb(193, 112, 219)
HSLhsl(285, 60%, 65%)
HSVhsv(285, 49%, 86%)
CMYKcmyk(11.9%, 48.9%, 0%, 14.1%)
CIE-LABlab(59.93, 49.20, -41.94)
CIE-LCHlch(59.93, 64.65, 319.56°)
OKLaboklab(67.49% 0.1269 -0.1163)
OKLCHoklch(67.49% 0.172 317.5)
XYZxyz(40.5709, 28.0416, 70.2795)
Luminance0.2804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170DB #8ADB70
analogous
#8C70DB #C170DB #DB70BF
triadic
#C170DB #DBC170 #70DBC1
tetradic
#C170DB #DB8C70 #8ADB70 #70BFDB
square
#C170DB #DB8C70 #8ADB70 #70BFDB
split-complementary
#C170DB #BFDB70 #70DB8C
monochromatic
#882AA7 #AC3FCF #C170DB #D6A1E7 #EBD2F4

Accessibility & contrast

On white

3.18
#C170DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#C170DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170DB
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170DB#FFFFFF#000000##000000
##C170DB1.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C8BDF
Deuteranopia (green-blind)
#7493D8
Tritanopia (blue-blind)
#C17F9B
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #c170db;
/* rgb */ color: rgb(193, 112, 219);
/* oklch */ color: oklch(67.5% 0.172 317.5);
Tailwind
colors: {
  custom: {
    50: '#d69be6',
    500: '#c170db',
    950: '#000000',
  },
}
SCSS
$custom: #c170db;
$custom-light: #d69be6;
$custom-dark: #000000;
JSON
{
  "hex": "#c170db",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 219
  },
  "hsl": {
    "h": 285.421,
    "s": 59.777,
    "l": 64.902
  },
  "oklch": {
    "l": 0.67493,
    "c": 0.17214,
    "h": 317.5
  },
  "luminance": 0.2804
}

Semantic roles & 50–950 ramp

primary
#C170DB
secondary
#CAE6C1
accent
#C71E47
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C170DB

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

Preview Lab → · Contrast checker → · Palette generator →

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