#C170BD#C170BD

#C170BD is a light, vivid purple. Relative luminance 0.266; OKLCH L 66.1% C 0.142 H 328.8°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#C170BD
RGBrgb(193, 112, 189)
HSLhsl(303, 40%, 60%)
HSVhsv(303, 42%, 76%)
CMYKcmyk(0%, 42%, 2.1%, 24.3%)
CIE-LABlab(58.60, 43.42, -27.02)
CIE-LCHlch(58.60, 51.14, 328.11°)
OKLaboklab(66.07% 0.1216 -0.0736)
OKLCHoklch(66.07% 0.142 328.8)
XYZxyz(36.9712, 26.6018, 51.3215)
Luminance0.2660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170BD #70C174
analogous
#9D70C1 #C170BD #C17095
triadic
#C170BD #BDC170 #70BDC1
tetradic
#C170BD #C19D70 #70C174 #7095C1
square
#C170BD #C19D70 #70C174 #7095C1
split-complementary
#C170BD #95C170 #70C19D
monochromatic
#7F377C #AA4AA5 #C170BD #D49BD1 #E6C5E4

Accessibility & contrast

On white

3.32
#C170BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#C170BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170BD
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170BD#FFFFFF#000000##000000
##C170BD1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B86C0
Deuteranopia (green-blind)
#8191BA
Tritanopia (blue-blind)
#C6778E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #c170bd;
/* rgb */ color: rgb(193, 112, 189);
/* oklch */ color: oklch(66.1% 0.142 328.8);
Tailwind
colors: {
  custom: {
    50: '#d59bd1',
    500: '#c170bd',
    950: '#000000',
  },
}
SCSS
$custom: #c170bd;
$custom-light: #d59bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#c170bd",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 189
  },
  "hsl": {
    "h": 302.963,
    "s": 39.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.66075,
    "c": 0.14213,
    "h": 328.8
  },
  "luminance": 0.266
}

Semantic roles & 50–950 ramp

primary
#C170BD
secondary
#B7D6B8
accent
#CF5E58
background
#FDF9FC
surface
#FAF2F9
border
#D3CCD2
text
#140E14
muted
#837E82

Preview Lab

Preview with #C170BD

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

Preview Lab → · Contrast checker → · Palette generator →

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