#C172F5#C172F5

#C172F5 is a light, vivid violet. Relative luminance 0.300; OKLCH L 69.2% C 0.197 H 310.1°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#C172F5
RGBrgb(193, 114, 245)
HSLhsl(276, 87%, 70%)
HSVhsv(276, 53%, 96%)
CMYKcmyk(21.2%, 53.5%, 0%, 3.9%)
CIE-LABlab(61.62, 53.63, -53.73)
CIE-LCHlch(61.62, 75.91, 314.95°)
OKLaboklab(69.17% 0.1267 -0.1506)
OKLCHoklch(69.17% 0.197 310.1)
XYZxyz(44.4880, 29.9655, 89.8088)
Luminance0.2997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172F5 #A6F572
analogous
#7F72F5 #C172F5 #F572E8
triadic
#C172F5 #F5C172 #72F5C1
tetradic
#C172F5 #F57F72 #A6F572 #72E8F5
square
#C172F5 #F57F72 #A6F572 #72E8F5
split-complementary
#C172F5 #E8F572 #72F57F
monochromatic
#8B10DD #A839F1 #C172F5 #DAABF9 #F2E2FD

Accessibility & contrast

On white

3.00
#C172F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#C172F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C172F5
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172F5#FFFFFF#000000##000000
##C172F51.003.006.996.99
#FFFFFF3.001.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B91F9
Deuteranopia (green-blind)
#6696F2
Tritanopia (blue-blind)
#BA89A9
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c172f5;
/* rgb */ color: rgb(193, 114, 245);
/* oklch */ color: oklch(69.2% 0.197 310.1);
Tailwind
colors: {
  custom: {
    50: '#d69df9',
    500: '#c172f5',
    950: '#000000',
  },
}
SCSS
$custom: #c172f5;
$custom-light: #d69df9;
$custom-dark: #000000;
JSON
{
  "hex": "#c172f5",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 245
  },
  "hsl": {
    "h": 276.183,
    "s": 86.755,
    "l": 70.392
  },
  "oklch": {
    "l": 0.69172,
    "c": 0.19683,
    "h": 310.1
  },
  "luminance": 0.29965
}

Semantic roles & 50–950 ramp

primary
#C172F5
secondary
#DEF3CF
accent
#E3025C
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C172F5

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

Preview Lab → · Contrast checker → · Palette generator →

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