#C172DF#C172DF

#C172DF is a light, vivid purple. Relative luminance 0.287; OKLCH L 68.0% C 0.173 H 316.1°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#C172DF
RGBrgb(193, 114, 223)
HSLhsl(283, 63%, 66%)
HSVhsv(283, 49%, 87%)
CMYKcmyk(13.5%, 48.9%, 0%, 12.5%)
CIE-LABlab(60.52, 48.98, -43.25)
CIE-LCHlch(60.52, 65.34, 318.56°)
OKLaboklab(67.99% 0.1247 -0.1201)
OKLCHoklch(67.99% 0.173 316.1)
XYZxyz(41.3269, 28.7010, 73.1606)
Luminance0.2870 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172DF #90DF72
analogous
#8A72DF #C172DF #DF72C6
triadic
#C172DF #DFC172 #72DFC1
tetradic
#C172DF #DF8A72 #90DF72 #72C6DF
square
#C172DF #DF8A72 #90DF72 #72C6DF
split-complementary
#C172DF #C6DF72 #72DF8A
monochromatic
#8A28AF #AB40D4 #C172DF #D7A4EA #EDD6F6

Accessibility & contrast

On white

3.12
#C172DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#C172DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C172DF
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172DF#FFFFFF#000000##000000
##C172DF1.003.126.746.74
#FFFFFF3.121.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C8DE3
Deuteranopia (green-blind)
#7394DC
Tritanopia (blue-blind)
#C0829E
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #c172df;
/* rgb */ color: rgb(193, 114, 223);
/* oklch */ color: oklch(68.0% 0.173 316.1);
Tailwind
colors: {
  custom: {
    50: '#d69de9',
    500: '#c172df',
    950: '#000000',
  },
}
SCSS
$custom: #c172df;
$custom-light: #d69de9;
$custom-dark: #000000;
JSON
{
  "hex": "#c172df",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 223
  },
  "hsl": {
    "h": 283.486,
    "s": 63.006,
    "l": 66.078
  },
  "oklch": {
    "l": 0.67993,
    "c": 0.17312,
    "h": 316.1
  },
  "luminance": 0.287
}

Semantic roles & 50–950 ramp

primary
#C172DF
secondary
#CEE8C4
accent
#CB1B4B
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C172DF

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

Preview Lab → · Contrast checker → · Palette generator →

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