#C172EC#C172EC

#C172EC is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.7% C 0.187 H 312.4°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#C172EC
RGBrgb(193, 114, 236)
HSLhsl(279, 76%, 69%)
HSVhsv(279, 52%, 93%)
CMYKcmyk(18.2%, 51.7%, 0%, 7.5%)
CIE-LABlab(61.16, 51.69, -49.48)
CIE-LCHlch(61.16, 71.56, 316.25°)
OKLaboklab(68.68% 0.126 -0.1383)
OKLCHoklch(68.68% 0.187 312.4)
XYZxyz(43.1473, 29.4292, 82.7481)
Luminance0.2943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172EC #9DEC72
analogous
#8472EC #C172EC #EC72DA
triadic
#C172EC #ECC172 #72ECC1
tetradic
#C172EC #EC8472 #9DEC72 #72DAEC
square
#C172EC #EC8472 #9DEC72 #72DAEC
split-complementary
#C172EC #DAEC72 #72EC84
monochromatic
#8B1BC9 #A93CE5 #C172EC #D9A8F3 #F0DEFB

Accessibility & contrast

On white

3.05
#C172EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#C172EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C172EC
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172EC#FFFFFF#000000##000000
##C172EC1.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#538FF0
Deuteranopia (green-blind)
#6C95E9
Tritanopia (blue-blind)
#BD86A5
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c172ec;
/* rgb */ color: rgb(193, 114, 236);
/* oklch */ color: oklch(68.7% 0.187 312.4);
Tailwind
colors: {
  custom: {
    50: '#d69df2',
    500: '#c172ec',
    950: '#000000',
  },
}
SCSS
$custom: #c172ec;
$custom-light: #d69df2;
$custom-dark: #000000;
JSON
{
  "hex": "#c172ec",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 236
  },
  "hsl": {
    "h": 278.852,
    "s": 76.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.68677,
    "c": 0.18707,
    "h": 312.4
  },
  "luminance": 0.29428
}

Semantic roles & 50–950 ramp

primary
#C172EC
secondary
#D8EFCB
accent
#D80D55
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C172EC

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

Preview Lab → · Contrast checker → · Palette generator →

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