#C172EF#C172EF

#C172EF is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.8% C 0.190 H 311.6°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#C172EF
RGBrgb(193, 114, 239)
HSLhsl(278, 80%, 69%)
HSVhsv(278, 52%, 94%)
CMYKcmyk(19.2%, 52.3%, 0%, 6.3%)
CIE-LABlab(61.31, 52.33, -50.90)
CIE-LCHlch(61.31, 73.01, 315.79°)
OKLaboklab(68.84% 0.1263 -0.1424)
OKLCHoklch(68.84% 0.19 311.6)
XYZxyz(43.5868, 29.6050, 85.0629)
Luminance0.2960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172EF #A0EF72
analogous
#8372EF #C172EF #EF72DF
triadic
#C172EF #EFC172 #72EFC1
tetradic
#C172EF #EF8372 #A0EF72 #72DFEF
square
#C172EF #EF8372 #A0EF72 #72DFEF
split-complementary
#C172EF #DFEF72 #72EF83
monochromatic
#8C18CF #A93BE9 #C172EF #D9A9F5 #F1E0FB

Accessibility & contrast

On white

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

On black

6.92
#C172EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C172EF
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172EF#FFFFFF#000000##000000
##C172EF1.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5190F3
Deuteranopia (green-blind)
#6A96EC
Tritanopia (blue-blind)
#BC87A6
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c172ef;
/* rgb */ color: rgb(193, 114, 239);
/* oklch */ color: oklch(68.8% 0.190 311.6);
Tailwind
colors: {
  custom: {
    50: '#d69df5',
    500: '#c172ef',
    950: '#000000',
  },
}
SCSS
$custom: #c172ef;
$custom-light: #d69df5;
$custom-dark: #000000;
JSON
{
  "hex": "#c172ef",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 239
  },
  "hsl": {
    "h": 277.92,
    "s": 79.618,
    "l": 69.216
  },
  "oklch": {
    "l": 0.6884,
    "c": 0.19032,
    "h": 311.6
  },
  "luminance": 0.29604
}

Semantic roles & 50–950 ramp

primary
#C172EF
secondary
#DAF1CC
accent
#DC0A57
background
#FDF9FF
surface
#FBF2FE
border
#D4CCD6
text
#150E17
muted
#837E85

Preview Lab

Preview with #C172EF

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

Preview Lab → · Contrast checker → · Palette generator →

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