#C170B1#C170B1

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

Color values

HEX#C170B1
RGBrgb(193, 112, 177)
HSLhsl(312, 40%, 60%)
HSVhsv(312, 42%, 76%)
CMYKcmyk(0%, 42%, 8.3%, 24.3%)
CIE-LABlab(58.13, 41.29, -20.87)
CIE-LCHlch(58.13, 46.26, 333.18°)
OKLaboklab(65.57% 0.1187 -0.0563)
OKLCHoklch(65.57% 0.131 334.6)
XYZxyz(35.7222, 26.1021, 44.7431)
Luminance0.2610 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170B1 #70C180
analogous
#A970C1 #C170B1 #C17089
triadic
#C170B1 #B1C170 #70B1C1
tetradic
#C170B1 #C1A970 #70C180 #7089C1
square
#C170B1 #C1A970 #70C180 #7089C1
split-complementary
#C170B1 #89C170 #70C1A9
monochromatic
#7F3771 #AA4A97 #C170B1 #D49BC8 #E6C5E0

Accessibility & contrast

On white

3.38
#C170B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#C170B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170B1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170B1#FFFFFF#000000##000000
##C170B11.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7084B3
Deuteranopia (green-blind)
#8590AF
Tritanopia (blue-blind)
#C87488
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #c170b1;
/* rgb */ color: rgb(193, 112, 177);
/* oklch */ color: oklch(65.6% 0.131 334.6);
Tailwind
colors: {
  custom: {
    50: '#d59bc8',
    500: '#c170b1',
    950: '#000000',
  },
}
SCSS
$custom: #c170b1;
$custom-light: #d59bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#c170b1",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 177
  },
  "hsl": {
    "h": 311.852,
    "s": 39.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.65568,
    "c": 0.13137,
    "h": 334.6
  },
  "luminance": 0.261
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C170B1

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

Preview Lab → · Contrast checker → · Palette generator →

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