#C170D4#C170D4

#C170D4 is a light, vivid purple. Relative luminance 0.277; OKLCH L 67.1% C 0.165 H 319.8°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#C170D4
RGBrgb(193, 112, 212)
HSLhsl(289, 54%, 64%)
HSVhsv(289, 47%, 83%)
CMYKcmyk(9%, 47.2%, 0%, 16.9%)
CIE-LABlab(59.60, 47.80, -38.51)
CIE-LCHlch(59.60, 61.38, 321.14°)
OKLaboklab(67.14% 0.1259 -0.1064)
OKLCHoklch(67.14% 0.165 319.8)
XYZxyz(39.6687, 27.6807, 65.5279)
Luminance0.2768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170D4 #83D470
analogous
#8F70D4 #C170D4 #D470B5
triadic
#C170D4 #D4C170 #70D4C1
tetradic
#C170D4 #D48F70 #83D470 #70B5D4
square
#C170D4 #D48F70 #83D470 #70B5D4
split-complementary
#C170D4 #B5D470 #70D48F
monochromatic
#862F9B #AD41C6 #C170D4 #D59FE2 #EACEF0

Accessibility & contrast

On white

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

On black

6.54
#C170D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170D4
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170D4#FFFFFF#000000##000000
##C170D41.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#608AD7
Deuteranopia (green-blind)
#7792D1
Tritanopia (blue-blind)
#C27D98
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #c170d4;
/* rgb */ color: rgb(193, 112, 212);
/* oklch */ color: oklch(67.1% 0.165 319.8);
Tailwind
colors: {
  custom: {
    50: '#d69be1',
    500: '#c170d4',
    950: '#000000',
  },
}
SCSS
$custom: #c170d4;
$custom-light: #d69be1;
$custom-dark: #000000;
JSON
{
  "hex": "#c170d4",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 212
  },
  "hsl": {
    "h": 288.6,
    "s": 53.763,
    "l": 63.529
  },
  "oklch": {
    "l": 0.67144,
    "c": 0.16487,
    "h": 319.8
  },
  "luminance": 0.27679
}

Semantic roles & 50–950 ramp

primary
#C170D4
secondary
#C5E2BE
accent
#C12442
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #C170D4

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

Preview Lab → · Contrast checker → · Palette generator →

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