#C170A7#C170A7

#C170A7 is a light, vivid pink. Relative luminance 0.257; OKLCH L 65.2% C 0.123 H 340.2°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#C170A7
RGBrgb(193, 112, 167)
HSLhsl(319, 40%, 60%)
HSVhsv(319, 42%, 76%)
CMYKcmyk(0%, 42%, 13.5%, 24.3%)
CIE-LABlab(57.77, 39.60, -15.68)
CIE-LCHlch(57.77, 42.59, 338.40°)
OKLaboklab(65.17% 0.116 -0.0418)
OKLCHoklch(65.17% 0.123 340.2)
XYZxyz(34.7617, 25.7180, 39.6848)
Luminance0.2572 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170A7 #70C18A
analogous
#B270C1 #C170A7 #C1707F
triadic
#C170A7 #A7C170 #70A7C1
tetradic
#C170A7 #C1B270 #70C18A #707FC1
square
#C170A7 #C1B270 #70C18A #707FC1
split-complementary
#C170A7 #7FC170 #70C1B2
monochromatic
#7F3768 #AA4A8B #C170A7 #D49BC1 #E6C5DC

Accessibility & contrast

On white

3.42
#C170A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#C170A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170A7
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170A7#FFFFFF#000000##000000
##C170A71.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7383A9
Deuteranopia (green-blind)
#888FA5
Tritanopia (blue-blind)
#CA7184
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #c170a7;
/* rgb */ color: rgb(193, 112, 167);
/* oklch */ color: oklch(65.2% 0.123 340.2);
Tailwind
colors: {
  custom: {
    50: '#d59bc1',
    500: '#c170a7',
    950: '#000000',
  },
}
SCSS
$custom: #c170a7;
$custom-light: #d59bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#c170a7",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 167
  },
  "hsl": {
    "h": 319.259,
    "s": 39.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.65173,
    "c": 0.12327,
    "h": 340.2
  },
  "luminance": 0.25716
}

Semantic roles & 50–950 ramp

primary
#C170A7
secondary
#B7D6C1
accent
#CF7F58
background
#FDF9FB
surface
#FAF2F7
border
#D3CCD0
text
#140E12
muted
#837E81

Preview Lab

Preview with #C170A7

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

Preview Lab → · Contrast checker → · Palette generator →

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