#C172DD#C172DD

#C172DD is a light, vivid purple. Relative luminance 0.286; OKLCH L 67.9% C 0.171 H 316.7°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#C172DD
RGBrgb(193, 114, 221)
HSLhsl(284, 61%, 66%)
HSVhsv(284, 48%, 87%)
CMYKcmyk(12.7%, 48.4%, 0%, 13.3%)
CIE-LABlab(60.42, 48.57, -42.28)
CIE-LCHlch(60.42, 64.39, 318.96°)
OKLaboklab(67.89% 0.1244 -0.1173)
OKLCHoklch(67.89% 0.171 316.7)
XYZxyz(41.0589, 28.5938, 71.7489)
Luminance0.2859 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172DD #8EDD72
analogous
#8B72DD #C172DD #DD72C3
triadic
#C172DD #DDC172 #72DDC1
tetradic
#C172DD #DD8B72 #8EDD72 #72C3DD
square
#C172DD #DD8B72 #8EDD72 #72C3DD
split-complementary
#C172DD #C3DD72 #72DD8B
monochromatic
#8929AB #AB41D1 #C172DD #D7A3E9 #ECD5F5

Accessibility & contrast

On white

3.13
#C172DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#C172DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C172DD
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172DD#FFFFFF#000000##000000
##C172DD1.003.136.726.72
#FFFFFF3.131.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8DE1
Deuteranopia (green-blind)
#7494DA
Tritanopia (blue-blind)
#C0829D
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #c172dd;
/* rgb */ color: rgb(193, 114, 221);
/* oklch */ color: oklch(67.9% 0.171 316.7);
Tailwind
colors: {
  custom: {
    50: '#d69de8',
    500: '#c172dd',
    950: '#000000',
  },
}
SCSS
$custom: #c172dd;
$custom-light: #d69de8;
$custom-dark: #000000;
JSON
{
  "hex": "#c172dd",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 221
  },
  "hsl": {
    "h": 284.299,
    "s": 61.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.67892,
    "c": 0.171,
    "h": 316.7
  },
  "luminance": 0.28593
}

Semantic roles & 50–950 ramp

primary
#C172DD
secondary
#CDE7C4
accent
#C91D4A
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C172DD

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

Preview Lab → · Contrast checker → · Palette generator →

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