#C171FA#C171FA

#C171FA is a light, highly saturated violet. Relative luminance 0.300; OKLCH L 69.3% C 0.204 H 309.0°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#C171FA
RGBrgb(193, 113, 250)
HSLhsl(275, 93%, 71%)
HSVhsv(275, 55%, 98%)
CMYKcmyk(22.8%, 54.8%, 0%, 2%)
CIE-LABlab(61.70, 55.22, -56.37)
CIE-LCHlch(61.70, 78.91, 314.41°)
OKLaboklab(69.31% 0.1282 -0.1583)
OKLCHoklch(69.31% 0.204 309)
XYZxyz(45.1494, 30.0505, 93.8458)
Luminance0.3005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C171FA #AAFA71
analogous
#7C71FA #C171FA #FA71EF
triadic
#C171FA #FAC171 #71FAC1
tetradic
#C171FA #FA7C71 #AAFA71 #71EFFA
square
#C171FA #FA7C71 #AAFA71 #71EFFA
split-complementary
#C171FA #EFFA71 #71FA7C
monochromatic
#8B08E8 #A736F8 #C171FA #DBACFC #F2E1FE

Accessibility & contrast

On white

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

On black

7.01
#C171FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C171FA
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C171FA#FFFFFF#000000##000000
##C171FA1.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4592FF
Deuteranopia (green-blind)
#6196F7
Tritanopia (blue-blind)
#B98AAB
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c171fa;
/* rgb */ color: rgb(193, 113, 250);
/* oklch */ color: oklch(69.3% 0.204 309.0);
Tailwind
colors: {
  custom: {
    50: '#d79dfc',
    500: '#c171fa',
    950: '#000000',
  },
}
SCSS
$custom: #c171fa;
$custom-light: #d79dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#c171fa",
  "rgb": {
    "r": 193,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 275.036,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.69312,
    "c": 0.20376,
    "h": 309
  },
  "luminance": 0.3005
}

Semantic roles & 50–950 ramp

primary
#C171FA
secondary
#E0F5D1
accent
#E6005F
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #C171FA

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

Preview Lab → · Contrast checker → · Palette generator →

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