#C172FE#C172FE

#C172FE is a light, highly saturated violet. Relative luminance 0.305; OKLCH L 69.7% C 0.207 H 308.0°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#C172FE
RGBrgb(193, 114, 254)
HSLhsl(274, 99%, 72%)
HSVhsv(274, 55%, 100%)
CMYKcmyk(24%, 55.1%, 0%, 0.4%)
CIE-LABlab(62.11, 55.60, -57.92)
CIE-LCHlch(62.11, 80.28, 313.83°)
OKLaboklab(69.68% 0.1272 -0.1629)
OKLCHoklch(69.68% 0.207 308)
XYZxyz(45.8954, 30.5284, 97.2215)
Luminance0.3053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C172FE #AFFE72
analogous
#7B72FE #C172FE #FE72F5
triadic
#C172FE #FEC172 #72FEC1
tetradic
#C172FE #FE7B72 #AFFE72 #72F5FE
square
#C172FE #FE7B72 #AFFE72 #72F5FE
split-complementary
#C172FE #F5FE72 #72FE7B
monochromatic
#8A02F4 #A635FE #C172FE #DCAFFE #F2E1FF

Accessibility & contrast

On white

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

On black

7.11
#C172FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C172FE
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C172FE#FFFFFF#000000##000000
##C172FE1.002.967.117.11
#FFFFFF2.961.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4293FF
Deuteranopia (green-blind)
#5F97FB
Tritanopia (blue-blind)
#B88CAD
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #c172fe;
/* rgb */ color: rgb(193, 114, 254);
/* oklch */ color: oklch(69.7% 0.207 308.0);
Tailwind
colors: {
  custom: {
    50: '#d79dff',
    500: '#c172fe',
    950: '#000000',
  },
}
SCSS
$custom: #c172fe;
$custom-light: #d79dff;
$custom-dark: #000000;
JSON
{
  "hex": "#c172fe",
  "rgb": {
    "r": 193,
    "g": 114,
    "b": 254
  },
  "hsl": {
    "h": 273.857,
    "s": 98.592,
    "l": 72.157
  },
  "oklch": {
    "l": 0.69683,
    "c": 0.20663,
    "h": 308
  },
  "luminance": 0.30528
}

Semantic roles & 50–950 ramp

primary
#C172FE
secondary
#E3F7D4
accent
#E60064
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150F18
muted
#837E86

Preview Lab

Preview with #C172FE

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

Preview Lab → · Contrast checker → · Palette generator →

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