#C170C2#C170C2

#C170C2 is a light, vivid purple. Relative luminance 0.268; OKLCH L 66.3% C 0.147 H 326.6°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#C170C2
RGBrgb(193, 112, 194)
HSLhsl(299, 40%, 60%)
HSVhsv(299, 42%, 76%)
CMYKcmyk(0.5%, 42.3%, 0%, 23.9%)
CIE-LABlab(58.81, 44.34, -29.55)
CIE-LCHlch(58.81, 53.28, 326.32°)
OKLaboklab(66.3% 0.1227 -0.0808)
OKLCHoklch(66.3% 0.147 326.6)
XYZxyz(37.5233, 26.8226, 54.2292)
Luminance0.2682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170C2 #71C270
analogous
#9870C2 #C170C2 #C2709A
triadic
#C170C2 #C2C170 #70C2C1
tetradic
#C170C2 #C29870 #71C270 #709AC2
square
#C170C2 #C29870 #71C270 #709AC2
split-complementary
#C170C2 #9AC270 #70C298
monochromatic
#803781 #AA49AC #C170C2 #D49BD4 #E6C6E7

Accessibility & contrast

On white

3.30
#C170C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#C170C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170C2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170C2#FFFFFF#000000##000000
##C170C21.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6987C5
Deuteranopia (green-blind)
#7F91BF
Tritanopia (blue-blind)
#C57890
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #c170c2;
/* rgb */ color: rgb(193, 112, 194);
/* oklch */ color: oklch(66.3% 0.147 326.6);
Tailwind
colors: {
  custom: {
    50: '#d59bd4',
    500: '#c170c2',
    950: '#000000',
  },
}
SCSS
$custom: #c170c2;
$custom-light: #d59bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#c170c2",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 194
  },
  "hsl": {
    "h": 299.268,
    "s": 40.196,
    "l": 60
  },
  "oklch": {
    "l": 0.66297,
    "c": 0.14688,
    "h": 326.6
  },
  "luminance": 0.26821
}

Semantic roles & 50–950 ramp

primary
#C170C2
secondary
#B8D7B7
accent
#D05859
background
#FDF9FD
surface
#FAF2FA
border
#D3CCD3
text
#140E14
muted
#837E83

Preview Lab

Preview with #C170C2

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

Preview Lab → · Contrast checker → · Palette generator →

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