#C170C7#C170C7

#C170C7 is a light, vivid purple. Relative luminance 0.270; OKLCH L 66.5% C 0.152 H 324.6°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#C170C7
RGBrgb(193, 112, 199)
HSLhsl(296, 44%, 61%)
HSVhsv(296, 44%, 78%)
CMYKcmyk(3%, 43.7%, 0%, 22%)
CIE-LABlab(59.02, 45.28, -32.06)
CIE-LCHlch(59.02, 55.48, 324.70°)
OKLaboklab(66.52% 0.1237 -0.0879)
OKLCHoklch(66.52% 0.152 324.6)
XYZxyz(38.0943, 27.0510, 57.2365)
Luminance0.2705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170C7 #76C770
analogous
#9570C7 #C170C7 #C770A1
triadic
#C170C7 #C7C170 #70C7C1
tetradic
#C170C7 #C79570 #76C770 #70A1C7
square
#C170C7 #C79570 #76C770 #70A1C7
split-complementary
#C170C7 #A1C770 #70C795
monochromatic
#823588 #AC46B4 #C170C7 #D49CD8 #E7C8E9

Accessibility & contrast

On white

3.28
#C170C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#C170C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170C7
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170C7#FFFFFF#000000##000000
##C170C71.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6788CA
Deuteranopia (green-blind)
#7D92C4
Tritanopia (blue-blind)
#C47A92
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #c170c7;
/* rgb */ color: rgb(193, 112, 199);
/* oklch */ color: oklch(66.5% 0.152 324.6);
Tailwind
colors: {
  custom: {
    50: '#d59bd8',
    500: '#c170c7',
    950: '#000000',
  },
}
SCSS
$custom: #c170c7;
$custom-light: #d59bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#c170c7",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 199
  },
  "hsl": {
    "h": 295.862,
    "s": 43.719,
    "l": 60.98
  },
  "oklch": {
    "l": 0.66524,
    "c": 0.15175,
    "h": 324.6
  },
  "luminance": 0.27049
}

Semantic roles & 50–950 ramp

primary
#C170C7
secondary
#BBDAB9
accent
#B72F38
background
#FDF9FD
surface
#FAF2FA
border
#D3CCD3
text
#140E14
muted
#837E83

Preview Lab

Preview with #C170C7

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

Preview Lab → · Contrast checker → · Palette generator →

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