#C172DB#C172DB

#C172DB is a light, vivid purple. Relative luminance 0.285; OKLCH L 67.8% C 0.169 H 317.3°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#C172DB
RGBrgb(193, 114, 219)
HSLhsl(285, 59%, 65%)
HSVhsv(285, 48%, 86%)
CMYKcmyk(11.9%, 47.9%, 0%, 14.1%)
CIE-LABlab(60.33, 48.16, -41.31)
CIE-LCHlch(60.33, 63.45, 319.38°)
OKLaboklab(67.79% 0.1241 -0.1145)
OKLCHoklch(67.79% 0.169 317.3)
XYZxyz(40.7940, 28.4879, 70.3539)
Luminance0.2849 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172DB #8CDB72
analogous
#8C72DB #C172DB #DB72C0
triadic
#C172DB #DBC172 #72DBC1
tetradic
#C172DB #DB8C72 #8CDB72 #72C0DB
square
#C172DB #DB8C72 #8CDB72 #72C0DB
split-complementary
#C172DB #C0DB72 #72DB8C
monochromatic
#892BA8 #AC41CF #C172DB #D6A3E7 #ECD4F4

Accessibility & contrast

On white

3.14
#C172DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#C172DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C172DB
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172DB#FFFFFF#000000##000000
##C172DB1.003.146.706.70
#FFFFFF3.141.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8CDF
Deuteranopia (green-blind)
#7594D8
Tritanopia (blue-blind)
#C0819C
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #c172db;
/* rgb */ color: rgb(193, 114, 219);
/* oklch */ color: oklch(67.8% 0.169 317.3);
Tailwind
colors: {
  custom: {
    50: '#d69de6',
    500: '#c172db',
    950: '#000000',
  },
}
SCSS
$custom: #c172db;
$custom-light: #d69de6;
$custom-dark: #000000;
JSON
{
  "hex": "#c172db",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 219
  },
  "hsl": {
    "h": 285.143,
    "s": 59.322,
    "l": 65.294
  },
  "oklch": {
    "l": 0.67791,
    "c": 0.16888,
    "h": 317.3
  },
  "luminance": 0.28487
}

Semantic roles & 50–950 ramp

primary
#C172DB
secondary
#CBE6C3
accent
#C71F48
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #C172DB

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

Preview Lab → · Contrast checker → · Palette generator →

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