#C170B8#C170B8

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

Color values

HEX#C170B8
RGBrgb(193, 112, 184)
HSLhsl(307, 40%, 60%)
HSVhsv(307, 42%, 76%)
CMYKcmyk(0%, 42%, 4.7%, 24.3%)
CIE-LABlab(58.40, 42.52, -24.47)
CIE-LCHlch(58.40, 49.06, 330.08°)
OKLaboklab(65.86% 0.1205 -0.0664)
OKLCHoklch(65.86% 0.138 331.1)
XYZxyz(36.4378, 26.3884, 48.5123)
Luminance0.2639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170B8 #70C179
analogous
#A270C1 #C170B8 #C1708F
triadic
#C170B8 #B8C170 #70B8C1
tetradic
#C170B8 #C1A270 #70C179 #708FC1
square
#C170B8 #C1A270 #70C179 #708FC1
split-complementary
#C170B8 #8FC170 #70C1A2
monochromatic
#7F3777 #AA4A9F #C170B8 #D49BCD #E6C5E2

Accessibility & contrast

On white

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

On black

6.28
#C170B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170B8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170B8#FFFFFF#000000##000000
##C170B81.003.356.286.28
#FFFFFF3.351.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D85BB
Deuteranopia (green-blind)
#8391B6
Tritanopia (blue-blind)
#C7768B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #c170b8;
/* rgb */ color: rgb(193, 112, 184);
/* oklch */ color: oklch(65.9% 0.138 331.1);
Tailwind
colors: {
  custom: {
    50: '#d59bcd',
    500: '#c170b8',
    950: '#000000',
  },
}
SCSS
$custom: #c170b8;
$custom-light: #d59bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#c170b8",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 184
  },
  "hsl": {
    "h": 306.667,
    "s": 39.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.65859,
    "c": 0.13753,
    "h": 331.1
  },
  "luminance": 0.26386
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C170B8

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

Preview Lab → · Contrast checker → · Palette generator →

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