#C172EB#C172EB

#C172EB is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.6% C 0.186 H 312.6°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#C172EB
RGBrgb(193, 114, 235)
HSLhsl(279, 75%, 68%)
HSVhsv(279, 51%, 92%)
CMYKcmyk(17.9%, 51.5%, 0%, 7.8%)
CIE-LABlab(61.11, 51.48, -49.01)
CIE-LCHlch(61.11, 71.08, 316.41°)
OKLaboklab(68.62% 0.1259 -0.1369)
OKLCHoklch(68.62% 0.186 312.6)
XYZxyz(43.0024, 29.3712, 81.9851)
Luminance0.2937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172EB #9CEB72
analogous
#8472EB #C172EB #EB72D8
triadic
#C172EB #EBC172 #72EBC1
tetradic
#C172EB #EB8472 #9CEB72 #72D8EB
square
#C172EB #EB8472 #9CEB72 #72D8EB
split-complementary
#C172EB #D8EB72 #72EB84
monochromatic
#8B1CC6 #A93CE3 #C172EB #D9A8F3 #F0DDFA

Accessibility & contrast

On white

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

On black

6.87
#C172EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C172EB
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172EB#FFFFFF#000000##000000
##C172EB1.003.056.876.87
#FFFFFF3.051.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#548FEF
Deuteranopia (green-blind)
#6C95E8
Tritanopia (blue-blind)
#BD86A4
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c172eb;
/* rgb */ color: rgb(193, 114, 235);
/* oklch */ color: oklch(68.6% 0.186 312.6);
Tailwind
colors: {
  custom: {
    50: '#d69df2',
    500: '#c172eb',
    950: '#000000',
  },
}
SCSS
$custom: #c172eb;
$custom-light: #d69df2;
$custom-dark: #000000;
JSON
{
  "hex": "#c172eb",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 235
  },
  "hsl": {
    "h": 279.174,
    "s": 75.155,
    "l": 68.431
  },
  "oklch": {
    "l": 0.68623,
    "c": 0.18599,
    "h": 312.6
  },
  "luminance": 0.2937
}

Semantic roles & 50–950 ramp

primary
#C172EB
secondary
#D7EFCA
accent
#D70E54
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C172EB

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

Preview Lab → · Contrast checker → · Palette generator →

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