#C170A2#C170A2

#C170A2 is a light, moderate pink. Relative luminance 0.255; OKLCH L 65.0% C 0.120 H 343.2°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#C170A2
RGBrgb(193, 112, 162)
HSLhsl(323, 40%, 60%)
HSVhsv(323, 42%, 76%)
CMYKcmyk(0%, 42%, 16.1%, 24.3%)
CIE-LABlab(57.59, 38.79, -13.05)
CIE-LCHlch(57.59, 40.92, 341.40°)
OKLaboklab(64.98% 0.1145 -0.0346)
OKLCHoklch(64.98% 0.12 343.2)
XYZxyz(34.3084, 25.5366, 37.2974)
Luminance0.2553 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170A2 #70C18F
analogous
#B870C1 #C170A2 #C1707A
triadic
#C170A2 #A2C170 #70A2C1
tetradic
#C170A2 #C1B870 #70C18F #707AC1
square
#C170A2 #C1B870 #70C18F #707AC1
split-complementary
#C170A2 #7AC170 #70C1B8
monochromatic
#7F3764 #AA4A85 #C170A2 #D49BBE #E6C5DA

Accessibility & contrast

On white

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

On black

6.11
#C170A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170A2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170A2#FFFFFF#000000##000000
##C170A21.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c170a2;
/* rgb */ color: rgb(193, 112, 162);
/* oklch */ color: oklch(65.0% 0.120 343.2);
Tailwind
colors: {
  custom: {
    50: '#d59bbd',
    500: '#c170a2',
    950: '#000000',
  },
}
SCSS
$custom: #c170a2;
$custom-light: #d59bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#c170a2",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 162
  },
  "hsl": {
    "h": 322.963,
    "s": 39.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.64984,
    "c": 0.1196,
    "h": 343.2
  },
  "luminance": 0.25534
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C170A2

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

Preview Lab → · Contrast checker → · Palette generator →

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