#C170CB#C170CB

#C170CB is a light, vivid purple. Relative luminance 0.272; OKLCH L 66.7% C 0.156 H 323.0°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#C170CB
RGBrgb(193, 112, 203)
HSLhsl(293, 47%, 62%)
HSVhsv(293, 45%, 80%)
CMYKcmyk(4.9%, 44.8%, 0%, 20.4%)
CIE-LABlab(59.20, 46.04, -34.06)
CIE-LCHlch(59.20, 57.27, 323.51°)
OKLaboklab(66.71% 0.1244 -0.0936)
OKLCHoklch(66.71% 0.156 323)
XYZxyz(38.5649, 27.2392, 59.7146)
Luminance0.2724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170CB #7ACB70
analogous
#9470CB #C170CB #CB70A8
triadic
#C170CB #CBC170 #70CBC1
tetradic
#C170CB #CB9470 #7ACB70 #70A8CB
square
#C170CB #CB9470 #7ACB70 #70A8CB
split-complementary
#C170CB #A8CB70 #70CB94
monochromatic
#83338D #AD44BA #C170CB #D49DDB #E8CAEC

Accessibility & contrast

On white

3.26
#C170CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#C170CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170CB
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170CB#FFFFFF#000000##000000
##C170CB1.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6588CE
Deuteranopia (green-blind)
#7B92C8
Tritanopia (blue-blind)
#C47B94
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #c170cb;
/* rgb */ color: rgb(193, 112, 203);
/* oklch */ color: oklch(66.7% 0.156 323.0);
Tailwind
colors: {
  custom: {
    50: '#d59bdb',
    500: '#c170cb',
    950: '#000000',
  },
}
SCSS
$custom: #c170cb;
$custom-light: #d59bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#c170cb",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 203
  },
  "hsl": {
    "h": 293.407,
    "s": 46.667,
    "l": 61.765
  },
  "oklch": {
    "l": 0.66711,
    "c": 0.15573,
    "h": 323
  },
  "luminance": 0.27238
}

Semantic roles & 50–950 ramp

primary
#C170CB
secondary
#BEDCBB
accent
#BA2C3B
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #C170CB

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

Preview Lab → · Contrast checker → · Palette generator →

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