#C170B4#C170B4

#C170B4 is a light, vivid purple. Relative luminance 0.262; OKLCH L 65.7% C 0.134 H 333.1°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#C170B4
RGBrgb(193, 112, 180)
HSLhsl(310, 40%, 60%)
HSVhsv(310, 42%, 76%)
CMYKcmyk(0%, 42%, 6.7%, 24.3%)
CIE-LABlab(58.25, 41.81, -22.42)
CIE-LCHlch(58.25, 47.44, 331.80°)
OKLaboklab(65.69% 0.1195 -0.0606)
OKLCHoklch(65.69% 0.134 333.1)
XYZxyz(36.0245, 26.2231, 46.3352)
Luminance0.2622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170B4 #70C17D
analogous
#A670C1 #C170B4 #C1708B
triadic
#C170B4 #B4C170 #70B4C1
tetradic
#C170B4 #C1A670 #70C17D #708BC1
square
#C170B4 #C1A670 #70C17D #708BC1
split-complementary
#C170B4 #8BC170 #70C1A6
monochromatic
#7F3774 #AA4A9B #C170B4 #D49BCA #E6C5E1

Accessibility & contrast

On white

3.36
#C170B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#C170B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170B4
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170B4#FFFFFF#000000##000000
##C170B41.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F85B6
Deuteranopia (green-blind)
#8490B2
Tritanopia (blue-blind)
#C8758A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #c170b4;
/* rgb */ color: rgb(193, 112, 180);
/* oklch */ color: oklch(65.7% 0.134 333.1);
Tailwind
colors: {
  custom: {
    50: '#d59bca',
    500: '#c170b4',
    950: '#000000',
  },
}
SCSS
$custom: #c170b4;
$custom-light: #d59bca;
$custom-dark: #000000;
JSON
{
  "hex": "#c170b4",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 180
  },
  "hsl": {
    "h": 309.63,
    "s": 39.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.65691,
    "c": 0.13397,
    "h": 333.1
  },
  "luminance": 0.26221
}

Semantic roles & 50–950 ramp

primary
#C170B4
secondary
#B7D6BC
accent
#CF6B58
background
#FDF9FC
surface
#FAF2F8
border
#D3CCD1
text
#140E13
muted
#837E82

Preview Lab

Preview with #C170B4

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

Preview Lab → · Contrast checker → · Palette generator →

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