#C172FD#C172FD

#C172FD is a light, highly saturated violet. Relative luminance 0.305; OKLCH L 69.6% C 0.206 H 308.2°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#C172FD
RGBrgb(193, 114, 253)
HSLhsl(274, 97%, 72%)
HSVhsv(274, 55%, 99%)
CMYKcmyk(23.7%, 54.9%, 0%, 0.8%)
CIE-LABlab(62.05, 55.37, -57.46)
CIE-LCHlch(62.05, 79.80, 313.94°)
OKLaboklab(69.63% 0.1271 -0.1615)
OKLCHoklch(69.63% 0.206 308.2)
XYZxyz(45.7357, 30.4646, 96.3803)
Luminance0.3046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172FD #AEFD72
analogous
#7C72FD #C172FD #FD72F3
triadic
#C172FD #FDC172 #72FDC1
tetradic
#C172FD #FD7C72 #AEFD72 #72F3FD
square
#C172FD #FD7C72 #AEFD72 #72F3FD
split-complementary
#C172FD #F3FD72 #72FD7C
monochromatic
#8B03F1 #A636FC #C172FD #DCAEFE #F2E1FF

Accessibility & contrast

On white

2.96
#C172FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#C172FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C172FD
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172FD#FFFFFF#000000##000000
##C172FD1.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4493FF
Deuteranopia (green-blind)
#6097FA
Tritanopia (blue-blind)
#B88BAD
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #c172fd;
/* rgb */ color: rgb(193, 114, 253);
/* oklch */ color: oklch(69.6% 0.206 308.2);
Tailwind
colors: {
  custom: {
    50: '#d79dff',
    500: '#c172fd',
    950: '#000000',
  },
}
SCSS
$custom: #c172fd;
$custom-light: #d79dff;
$custom-dark: #000000;
JSON
{
  "hex": "#c172fd",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 253
  },
  "hsl": {
    "h": 274.101,
    "s": 97.203,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69626,
    "c": 0.20554,
    "h": 308.2
  },
  "luminance": 0.30464
}

Semantic roles & 50–950 ramp

primary
#C172FD
secondary
#E3F7D4
accent
#E60063
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #C172FD

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

Preview Lab → · Contrast checker → · Palette generator →

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