#C172F0#C172F0

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

Color values

HEX#C172F0
RGBrgb(193, 114, 240)
HSLhsl(278, 81%, 69%)
HSVhsv(278, 53%, 94%)
CMYKcmyk(19.6%, 52.5%, 0%, 5.9%)
CIE-LABlab(61.36, 52.55, -51.38)
CIE-LCHlch(61.36, 73.49, 315.65°)
OKLaboklab(68.9% 0.1264 -0.1438)
OKLCHoklch(68.9% 0.191 311.3)
XYZxyz(43.7350, 29.6643, 85.8430)
Luminance0.2966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172F0 #A1F072
analogous
#8272F0 #C172F0 #F072E0
triadic
#C172F0 #F0C172 #72F0C1
tetradic
#C172F0 #F08272 #A1F072 #72E0F0
square
#C172F0 #F08272 #A1F072 #72E0F0
split-complementary
#C172F0 #E0F072 #72F082
monochromatic
#8C16D1 #A93BEA #C172F0 #D9A9F6 #F2E1FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C172F0#FFFFFF#000000##000000
##C172F01.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)
#5090F4
Deuteranopia (green-blind)
#6996ED
Tritanopia (blue-blind)
#BC87A6
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c172f0;
/* rgb */ color: rgb(193, 114, 240);
/* oklch */ color: oklch(68.9% 0.191 311.3);
Tailwind
colors: {
  custom: {
    50: '#d69df5',
    500: '#c172f0',
    950: '#000000',
  },
}
SCSS
$custom: #c172f0;
$custom-light: #d69df5;
$custom-dark: #000000;
JSON
{
  "hex": "#c172f0",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 240
  },
  "hsl": {
    "h": 277.619,
    "s": 80.769,
    "l": 69.412
  },
  "oklch": {
    "l": 0.68895,
    "c": 0.1914,
    "h": 311.3
  },
  "luminance": 0.29663
}

Semantic roles & 50–950 ramp

primary
#C172F0
secondary
#DAF1CD
accent
#DD0858
background
#FDF9FF
surface
#FBF2FE
border
#D4CCD6
text
#150E17
muted
#837E85

Preview Lab

Preview with #C172F0

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

Preview Lab → · Contrast checker → · Palette generator →

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