#C172CD#C172CD

#C172CD is a light, vivid purple. Relative luminance 0.278; OKLCH L 67.1% C 0.154 H 322.2°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#C172CD
RGBrgb(193, 114, 205)
HSLhsl(292, 48%, 63%)
HSVhsv(292, 44%, 80%)
CMYKcmyk(5.9%, 44.4%, 0%, 19.6%)
CIE-LABlab(59.69, 45.38, -34.42)
CIE-LCHlch(59.69, 56.96, 322.82°)
OKLaboklab(67.11% 0.1219 -0.0947)
OKLCHoklch(67.11% 0.154 322.2)
XYZxyz(39.0279, 27.7814, 61.0523)
Luminance0.2778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172CD #7ECD72
analogous
#9472CD #C172CD #CD72AB
triadic
#C172CD #CDC172 #72CDC1
tetradic
#C172CD #CD9472 #7ECD72 #72ABCD
square
#C172CD #CD9472 #7ECD72 #72ABCD
split-complementary
#C172CD #ABCD72 #72CD94
monochromatic
#853391 #AD45BD #C172CD #D59FDD #E9CCED

Accessibility & contrast

On white

3.20
#C172CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#C172CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C172CD
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172CD#FFFFFF#000000##000000
##C172CD1.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#668AD0
Deuteranopia (green-blind)
#7C93CA
Tritanopia (blue-blind)
#C37D96
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #c172cd;
/* rgb */ color: rgb(193, 114, 205);
/* oklch */ color: oklch(67.1% 0.154 322.2);
Tailwind
colors: {
  custom: {
    50: '#d59ddc',
    500: '#c172cd',
    950: '#000000',
  },
}
SCSS
$custom: #c172cd;
$custom-light: #d59ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#c172cd",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 205
  },
  "hsl": {
    "h": 292.088,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.67109,
    "c": 0.15436,
    "h": 322.2
  },
  "luminance": 0.2778
}

Semantic roles & 50–950 ramp

primary
#C172CD
secondary
#C1DEBD
accent
#BB2B3E
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #C172CD

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

Preview Lab → · Contrast checker → · Palette generator →

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