#C170B6#C170B6

#C170B6 is a light, vivid purple. Relative luminance 0.263; OKLCH L 65.8% C 0.136 H 332.1°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#C170B6
RGBrgb(193, 112, 182)
HSLhsl(308, 40%, 60%)
HSVhsv(308, 42%, 76%)
CMYKcmyk(0%, 42%, 5.7%, 24.3%)
CIE-LABlab(58.33, 42.16, -23.45)
CIE-LCHlch(58.33, 48.24, 330.92°)
OKLaboklab(65.77% 0.12 -0.0635)
OKLCHoklch(65.77% 0.136 332.1)
XYZxyz(36.2297, 26.3051, 47.4160)
Luminance0.2630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170B6 #70C17B
analogous
#A370C1 #C170B6 #C1708E
triadic
#C170B6 #B6C170 #70B6C1
tetradic
#C170B6 #C1A370 #70C17B #708EC1
square
#C170B6 #C1A370 #70C17B #708EC1
split-complementary
#C170B6 #8EC170 #70C1A3
monochromatic
#7F3776 #AA4A9D #C170B6 #D49BCC #E6C5E2

Accessibility & contrast

On white

3.35
#C170B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#C170B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170B6
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170B6#FFFFFF#000000##000000
##C170B61.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E85B9
Deuteranopia (green-blind)
#8390B4
Tritanopia (blue-blind)
#C7758B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #c170b6;
/* rgb */ color: rgb(193, 112, 182);
/* oklch */ color: oklch(65.8% 0.136 332.1);
Tailwind
colors: {
  custom: {
    50: '#d59bcc',
    500: '#c170b6',
    950: '#000000',
  },
}
SCSS
$custom: #c170b6;
$custom-light: #d59bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#c170b6",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 182
  },
  "hsl": {
    "h": 308.148,
    "s": 39.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.65775,
    "c": 0.13573,
    "h": 332.1
  },
  "luminance": 0.26303
}

Semantic roles & 50–950 ramp

primary
#C170B6
secondary
#B7D6BB
accent
#CF6958
background
#FDF9FC
surface
#FAF2F8
border
#D3CCD1
text
#140E13
muted
#837E82

Preview Lab

Preview with #C170B6

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

Preview Lab → · Contrast checker → · Palette generator →

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