#C173EC#C173EC

#C173EC is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.8% C 0.186 H 312.2°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#C173EC
RGBrgb(193, 115, 236)
HSLhsl(279, 76%, 69%)
HSVhsv(279, 51%, 93%)
CMYKcmyk(18.2%, 51.3%, 0%, 7.5%)
CIE-LABlab(61.36, 51.18, -49.17)
CIE-LCHlch(61.36, 70.97, 316.15°)
OKLaboklab(68.82% 0.1247 -0.1373)
OKLCHoklch(68.82% 0.186 312.2)
XYZxyz(43.2607, 29.6560, 82.7859)
Luminance0.2965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C173EC #9EEC73
analogous
#8573EC #C173EC #EC73DB
triadic
#C173EC #ECC173 #73ECC1
tetradic
#C173EC #EC8573 #9EEC73 #73DBEC
square
#C173EC #EC8573 #9EEC73 #73DBEC
split-complementary
#C173EC #DBEC73 #73EC85
monochromatic
#8B1BC9 #A93DE5 #C173EC #D9A9F3 #F1DFFB

Accessibility & contrast

On white

3.03
#C173EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#C173EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C173EC
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C173EC#FFFFFF#000000##000000
##C173EC1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5590F0
Deuteranopia (green-blind)
#6D96E9
Tritanopia (blue-blind)
#BD87A5
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c173ec;
/* rgb */ color: rgb(193, 115, 236);
/* oklch */ color: oklch(68.8% 0.186 312.2);
Tailwind
colors: {
  custom: {
    50: '#d69ef2',
    500: '#c173ec',
    950: '#000000',
  },
}
SCSS
$custom: #c173ec;
$custom-light: #d69ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#c173ec",
  "rgb": {
    "r": 193,
    "g": 115,
    "b": 236
  },
  "hsl": {
    "h": 278.678,
    "s": 76.101,
    "l": 68.824
  },
  "oklch": {
    "l": 0.68823,
    "c": 0.18551,
    "h": 312.2
  },
  "luminance": 0.29655
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C173EC

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

Preview Lab → · Contrast checker → · Palette generator →

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