#C172CB#C172CB

#C172CB is a light, vivid purple. Relative luminance 0.277; OKLCH L 67.0% C 0.152 H 322.9°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#C172CB
RGBrgb(193, 114, 203)
HSLhsl(293, 46%, 62%)
HSVhsv(293, 44%, 80%)
CMYKcmyk(4.9%, 43.8%, 0%, 20.4%)
CIE-LABlab(59.60, 44.99, -33.43)
CIE-LCHlch(59.60, 56.05, 323.39°)
OKLaboklab(67.02% 0.1215 -0.0918)
OKLCHoklch(67.02% 0.152 322.9)
XYZxyz(38.7880, 27.6855, 59.7890)
Luminance0.2768 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172CB #7CCB72
analogous
#9472CB #C172CB #CB72A9
triadic
#C172CB #CBC172 #72CBC1
tetradic
#C172CB #CB9472 #7CCB72 #72A9CB
square
#C172CB #CB9472 #7CCB72 #72A9CB
split-complementary
#C172CB #A9CB72 #72CB94
monochromatic
#84348E #AD45BB #C172CB #D59FDB #E8CBEC

Accessibility & contrast

On white

3.21
#C172CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#C172CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C172CB
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172CB#FFFFFF#000000##000000
##C172CB1.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#678ACE
Deuteranopia (green-blind)
#7D93C8
Tritanopia (blue-blind)
#C47C95
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #c172cb;
/* rgb */ color: rgb(193, 114, 203);
/* oklch */ color: oklch(67.0% 0.152 322.9);
Tailwind
colors: {
  custom: {
    50: '#d59ddb',
    500: '#c172cb',
    950: '#000000',
  },
}
SCSS
$custom: #c172cb;
$custom-light: #d59ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#c172cb",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 203
  },
  "hsl": {
    "h": 293.258,
    "s": 46.114,
    "l": 62.157
  },
  "oklch": {
    "l": 0.67015,
    "c": 0.15234,
    "h": 322.9
  },
  "luminance": 0.27684
}

Semantic roles & 50–950 ramp

primary
#C172CB
secondary
#C0DDBC
accent
#B92C3C
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #C172CB

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

Preview Lab → · Contrast checker → · Palette generator →

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