#C170B2#C170B2

#C170B2 is a light, vivid pink. Relative luminance 0.261; OKLCH L 65.6% C 0.132 H 334.1°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#C170B2
RGBrgb(193, 112, 178)
HSLhsl(311, 40%, 60%)
HSVhsv(311, 42%, 76%)
CMYKcmyk(0%, 42%, 7.8%, 24.3%)
CIE-LABlab(58.17, 41.46, -21.39)
CIE-LCHlch(58.17, 46.65, 332.71°)
OKLaboklab(65.61% 0.119 -0.0577)
OKLCHoklch(65.61% 0.132 334.1)
XYZxyz(35.8222, 26.1422, 45.2699)
Luminance0.2614 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170B2 #70C17F
analogous
#A770C1 #C170B2 #C1708A
triadic
#C170B2 #B2C170 #70B2C1
tetradic
#C170B2 #C1A770 #70C17F #708AC1
square
#C170B2 #C1A770 #70C17F #708AC1
split-complementary
#C170B2 #8AC170 #70C1A7
monochromatic
#7F3772 #AA4A98 #C170B2 #D49BC9 #E6C5E0

Accessibility & contrast

On white

3.37
#C170B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#C170B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170B2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170B2#FFFFFF#000000##000000
##C170B21.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7084B4
Deuteranopia (green-blind)
#8590B0
Tritanopia (blue-blind)
#C87489
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #c170b2;
/* rgb */ color: rgb(193, 112, 178);
/* oklch */ color: oklch(65.6% 0.132 334.1);
Tailwind
colors: {
  custom: {
    50: '#d59bc9',
    500: '#c170b2',
    950: '#000000',
  },
}
SCSS
$custom: #c170b2;
$custom-light: #d59bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#c170b2",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 178
  },
  "hsl": {
    "h": 311.111,
    "s": 39.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.65609,
    "c": 0.13223,
    "h": 334.1
  },
  "luminance": 0.2614
}

Semantic roles & 50–950 ramp

primary
#C170B2
secondary
#B7D6BD
accent
#CF6E58
background
#FDF9FC
surface
#FAF2F8
border
#D3CCD1
text
#140E13
muted
#837E82

Preview Lab

Preview with #C170B2

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

Preview Lab → · Contrast checker → · Palette generator →

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