#C170B7#C170B7

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

Color values

HEX#C170B7
RGBrgb(193, 112, 183)
HSLhsl(307, 40%, 60%)
HSVhsv(307, 42%, 76%)
CMYKcmyk(0%, 42%, 5.2%, 24.3%)
CIE-LABlab(58.36, 42.34, -23.96)
CIE-LCHlch(58.36, 48.65, 330.49°)
OKLaboklab(65.82% 0.1202 -0.0649)
OKLCHoklch(65.82% 0.137 331.6)
XYZxyz(36.3334, 26.3466, 47.9622)
Luminance0.2635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170B7 #70C17A
analogous
#A270C1 #C170B7 #C1708F
triadic
#C170B7 #B7C170 #70B7C1
tetradic
#C170B7 #C1A270 #70C17A #708FC1
square
#C170B7 #C1A270 #70C17A #708FC1
split-complementary
#C170B7 #8FC170 #70C1A2
monochromatic
#7F3776 #AA4A9E #C170B7 #D49BCC #E6C5E2

Accessibility & contrast

On white

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

On black

6.27
#C170B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170B7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170B7#FFFFFF#000000##000000
##C170B71.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c170b7;
/* rgb */ color: rgb(193, 112, 183);
/* oklch */ color: oklch(65.8% 0.137 331.6);
Tailwind
colors: {
  custom: {
    50: '#d59bcc',
    500: '#c170b7',
    950: '#000000',
  },
}
SCSS
$custom: #c170b7;
$custom-light: #d59bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#c170b7",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 183
  },
  "hsl": {
    "h": 307.407,
    "s": 39.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.65817,
    "c": 0.13662,
    "h": 331.6
  },
  "luminance": 0.26345
}

Semantic roles & 50–950 ramp

primary
#C170B7
secondary
#B7D6BB
accent
#CF6758
background
#FDF9FC
surface
#FAF2F9
border
#D3CCD2
text
#140E13
muted
#837E82

Preview Lab

Preview with #C170B7

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

Preview Lab → · Contrast checker → · Palette generator →

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