#C172F3#C172F3

#C172F3 is a light, vivid violet. Relative luminance 0.298; OKLCH L 69.1% C 0.195 H 310.6°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#C172F3
RGBrgb(193, 114, 243)
HSLhsl(277, 84%, 70%)
HSVhsv(277, 53%, 95%)
CMYKcmyk(20.6%, 53.1%, 0%, 4.7%)
CIE-LABlab(61.52, 53.19, -52.79)
CIE-LCHlch(61.52, 74.94, 315.22°)
OKLaboklab(69.06% 0.1266 -0.1479)
OKLCHoklch(69.06% 0.195 310.6)
XYZxyz(44.1843, 29.8440, 88.2095)
Luminance0.2984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172F3 #A4F372
analogous
#8072F3 #C172F3 #F372E5
triadic
#C172F3 #F3C172 #72F3C1
tetradic
#C172F3 #F38072 #A4F372 #72E5F3
square
#C172F3 #F38072 #A4F372 #72E5F3
split-complementary
#C172F3 #E5F372 #72F380
monochromatic
#8C12D8 #A83AEE #C172F3 #DAAAF8 #F3E3FD

Accessibility & contrast

On white

3.01
#C172F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#C172F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C172F3
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172F3#FFFFFF#000000##000000
##C172F31.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D91F7
Deuteranopia (green-blind)
#6796F0
Tritanopia (blue-blind)
#BB88A8
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c172f3;
/* rgb */ color: rgb(193, 114, 243);
/* oklch */ color: oklch(69.1% 0.195 310.6);
Tailwind
colors: {
  custom: {
    50: '#d69df7',
    500: '#c172f3',
    950: '#000000',
  },
}
SCSS
$custom: #c172f3;
$custom-light: #d69df7;
$custom-dark: #000000;
JSON
{
  "hex": "#c172f3",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 243
  },
  "hsl": {
    "h": 276.744,
    "s": 84.314,
    "l": 70
  },
  "oklch": {
    "l": 0.69061,
    "c": 0.19466,
    "h": 310.6
  },
  "luminance": 0.29843
}

Semantic roles & 50–950 ramp

primary
#C172F3
secondary
#DCF2CE
accent
#E1055A
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C172F3

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

Preview Lab → · Contrast checker → · Palette generator →

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