#C170A1#C170A1

#C170A1 is a light, moderate pink. Relative luminance 0.255; OKLCH L 64.9% C 0.119 H 343.8°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#C170A1
RGBrgb(193, 112, 161)
HSLhsl(324, 40%, 60%)
HSVhsv(324, 42%, 76%)
CMYKcmyk(0%, 42%, 16.6%, 24.3%)
CIE-LABlab(57.56, 38.63, -12.52)
CIE-LCHlch(57.56, 40.61, 342.04°)
OKLaboklab(64.95% 0.1142 -0.0331)
OKLCHoklch(64.95% 0.119 343.8)
XYZxyz(34.2199, 25.5012, 36.8311)
Luminance0.2550 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170A1 #70C190
analogous
#B970C1 #C170A1 #C17079
triadic
#C170A1 #A1C170 #70A1C1
tetradic
#C170A1 #C1B970 #70C190 #7079C1
square
#C170A1 #C1B970 #70C190 #7079C1
split-complementary
#C170A1 #79C170 #70C1B9
monochromatic
#7F3763 #AA4A84 #C170A1 #D49BBD #E6C5D9

Accessibility & contrast

On white

3.44
#C170A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#C170A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170A1
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170A1#FFFFFF#000000##000000
##C170A11.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7582A3
Deuteranopia (green-blind)
#8A8F9F
Tritanopia (blue-blind)
#CA7082
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #c170a1;
/* rgb */ color: rgb(193, 112, 161);
/* oklch */ color: oklch(64.9% 0.119 343.8);
Tailwind
colors: {
  custom: {
    50: '#d59bbc',
    500: '#c170a1',
    950: '#000000',
  },
}
SCSS
$custom: #c170a1;
$custom-light: #d59bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#c170a1",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 161
  },
  "hsl": {
    "h": 323.704,
    "s": 39.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.64947,
    "c": 0.11889,
    "h": 343.8
  },
  "luminance": 0.25499
}

Semantic roles & 50–950 ramp

primary
#C170A1
secondary
#B7D6C3
accent
#CF8758
background
#FDF9FB
surface
#FAF2F6
border
#D3CCD0
text
#140E12
muted
#837E81

Preview Lab

Preview with #C170A1

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

Preview Lab → · Contrast checker → · Palette generator →

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