#C170C5#C170C5

#C170C5 is a light, vivid purple. Relative luminance 0.270; OKLCH L 66.4% C 0.150 H 325.4°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#C170C5
RGBrgb(193, 112, 197)
HSLhsl(297, 42%, 61%)
HSVhsv(297, 43%, 77%)
CMYKcmyk(2%, 43.1%, 0%, 22.7%)
CIE-LABlab(58.94, 44.90, -31.06)
CIE-LCHlch(58.94, 54.60, 325.33°)
OKLaboklab(66.43% 0.1233 -0.0851)
OKLCHoklch(66.43% 0.15 325.4)
XYZxyz(37.8637, 26.9587, 56.0216)
Luminance0.2696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170C5 #74C570
analogous
#9670C5 #C170C5 #C5709F
triadic
#C170C5 #C5C170 #70C5C1
tetradic
#C170C5 #C59670 #74C570 #709FC5
square
#C170C5 #C59670 #74C570 #709FC5
split-complementary
#C170C5 #9FC570 #70C596
monochromatic
#813685 #AB48B0 #C170C5 #D49CD7 #E7C7E8

Accessibility & contrast

On white

3.29
#C170C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#C170C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170C5
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170C5#FFFFFF#000000##000000
##C170C51.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6887C8
Deuteranopia (green-blind)
#7E91C2
Tritanopia (blue-blind)
#C57991
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #c170c5;
/* rgb */ color: rgb(193, 112, 197);
/* oklch */ color: oklch(66.4% 0.150 325.4);
Tailwind
colors: {
  custom: {
    50: '#d59bd7',
    500: '#c170c5',
    950: '#000000',
  },
}
SCSS
$custom: #c170c5;
$custom-light: #d59bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#c170c5",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 197
  },
  "hsl": {
    "h": 297.176,
    "s": 42.289,
    "l": 60.588
  },
  "oklch": {
    "l": 0.66432,
    "c": 0.14979,
    "h": 325.4
  },
  "luminance": 0.26957
}

Semantic roles & 50–950 ramp

primary
#C170C5
secondary
#BAD9B8
accent
#B53036
background
#FDF9FD
surface
#FAF2FA
border
#D3CCD3
text
#140E14
muted
#837E83

Preview Lab

Preview with #C170C5

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

Preview Lab → · Contrast checker → · Palette generator →

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