#C172EE#C172EE

#C172EE is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.8% C 0.189 H 311.8°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#C172EE
RGBrgb(193, 114, 238)
HSLhsl(278, 78%, 69%)
HSVhsv(278, 52%, 93%)
CMYKcmyk(18.9%, 52.1%, 0%, 6.7%)
CIE-LABlab(61.26, 52.12, -50.43)
CIE-LCHlch(61.26, 72.52, 315.94°)
OKLaboklab(68.79% 0.1262 -0.141)
OKLCHoklch(68.79% 0.189 311.8)
XYZxyz(43.4395, 29.5461, 84.2870)
Luminance0.2954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172EE #9FEE72
analogous
#8372EE #C172EE #EE72DD
triadic
#C172EE #EEC172 #72EEC1
tetradic
#C172EE #EE8372 #9FEE72 #72DDEE
square
#C172EE #EE8372 #9FEE72 #72DDEE
split-complementary
#C172EE #DDEE72 #72EE83
monochromatic
#8C19CD #A93BE7 #C172EE #D9A9F5 #F1DFFB

Accessibility & contrast

On white

3.04
#C172EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#C172EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C172EE
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172EE#FFFFFF#000000##000000
##C172EE1.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5190F2
Deuteranopia (green-blind)
#6B96EB
Tritanopia (blue-blind)
#BC87A5
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c172ee;
/* rgb */ color: rgb(193, 114, 238);
/* oklch */ color: oklch(68.8% 0.189 311.8);
Tailwind
colors: {
  custom: {
    50: '#d69df4',
    500: '#c172ee',
    950: '#000000',
  },
}
SCSS
$custom: #c172ee;
$custom-light: #d69df4;
$custom-dark: #000000;
JSON
{
  "hex": "#c172ee",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 238
  },
  "hsl": {
    "h": 278.226,
    "s": 78.481,
    "l": 69.02
  },
  "oklch": {
    "l": 0.68786,
    "c": 0.18924,
    "h": 311.8
  },
  "luminance": 0.29545
}

Semantic roles & 50–950 ramp

primary
#C172EE
secondary
#D9F0CC
accent
#DB0B56
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C172EE

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

Preview Lab → · Contrast checker → · Palette generator →

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