#C172EA#C172EA

#C172EA is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.6% C 0.185 H 312.9°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#C172EA
RGBrgb(193, 114, 234)
HSLhsl(280, 74%, 68%)
HSVhsv(280, 51%, 92%)
CMYKcmyk(17.5%, 51.3%, 0%, 8.2%)
CIE-LABlab(61.06, 51.27, -48.53)
CIE-LCHlch(61.06, 70.60, 316.57°)
OKLaboklab(68.57% 0.1259 -0.1355)
OKLCHoklch(68.57% 0.185 312.9)
XYZxyz(42.8584, 29.3136, 81.2263)
Luminance0.2931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172EA #9BEA72
analogous
#8572EA #C172EA #EA72D7
triadic
#C172EA #EAC172 #72EAC1
tetradic
#C172EA #EA8572 #9BEA72 #72D7EA
square
#C172EA #EA8572 #9BEA72 #72D7EA
split-complementary
#C172EA #D7EA72 #72EA85
monochromatic
#8B1DC4 #AA3DE2 #C172EA #D8A7F2 #F0DDFA

Accessibility & contrast

On white

3.06
#C172EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#C172EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C172EA
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172EA#FFFFFF#000000##000000
##C172EA1.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#558FEE
Deuteranopia (green-blind)
#6D95E7
Tritanopia (blue-blind)
#BD85A4
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c172ea;
/* rgb */ color: rgb(193, 114, 234);
/* oklch */ color: oklch(68.6% 0.185 312.9);
Tailwind
colors: {
  custom: {
    50: '#d69df1',
    500: '#c172ea',
    950: '#000000',
  },
}
SCSS
$custom: #c172ea;
$custom-light: #d69df1;
$custom-dark: #000000;
JSON
{
  "hex": "#c172ea",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 279.5,
    "s": 74.074,
    "l": 68.235
  },
  "oklch": {
    "l": 0.6857,
    "c": 0.18491,
    "h": 312.9
  },
  "luminance": 0.29313
}

Semantic roles & 50–950 ramp

primary
#C172EA
secondary
#D6EECA
accent
#D60F53
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C172EA

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

Preview Lab → · Contrast checker → · Palette generator →

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