#C170B9#C170B9

#C170B9 is a light, vivid purple. Relative luminance 0.264; OKLCH L 65.9% C 0.138 H 330.7°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#C170B9
RGBrgb(193, 112, 185)
HSLhsl(306, 40%, 60%)
HSVhsv(306, 42%, 76%)
CMYKcmyk(0%, 42%, 4.1%, 24.3%)
CIE-LABlab(58.44, 42.70, -24.98)
CIE-LCHlch(58.44, 49.47, 329.67°)
OKLaboklab(65.9% 0.1207 -0.0678)
OKLCHoklch(65.9% 0.138 330.7)
XYZxyz(36.5430, 26.4305, 49.0663)
Luminance0.2643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170B9 #70C178
analogous
#A170C1 #C170B9 #C17091
triadic
#C170B9 #B9C170 #70B9C1
tetradic
#C170B9 #C1A170 #70C178 #7091C1
square
#C170B9 #C1A170 #70C178 #7091C1
split-complementary
#C170B9 #91C170 #70C1A1
monochromatic
#7F3778 #AA4AA1 #C170B9 #D49BCE #E6C5E3

Accessibility & contrast

On white

3.34
#C170B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#C170B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170B9
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170B9#FFFFFF#000000##000000
##C170B91.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D86BC
Deuteranopia (green-blind)
#8291B7
Tritanopia (blue-blind)
#C7768C
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #c170b9;
/* rgb */ color: rgb(193, 112, 185);
/* oklch */ color: oklch(65.9% 0.138 330.7);
Tailwind
colors: {
  custom: {
    50: '#d59bce',
    500: '#c170b9',
    950: '#000000',
  },
}
SCSS
$custom: #c170b9;
$custom-light: #d59bce;
$custom-dark: #000000;
JSON
{
  "hex": "#c170b9",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 185
  },
  "hsl": {
    "h": 305.926,
    "s": 39.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.65902,
    "c": 0.13844,
    "h": 330.7
  },
  "luminance": 0.26429
}

Semantic roles & 50–950 ramp

primary
#C170B9
secondary
#B7D6BA
accent
#CF6458
background
#FDF9FC
surface
#FAF2F9
border
#D3CCD2
text
#140E13
muted
#837E82

Preview Lab

Preview with #C170B9

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

Preview Lab → · Contrast checker → · Palette generator →

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