#C171FD#C171FD

#C171FD is a light, highly saturated violet. Relative luminance 0.302; OKLCH L 69.5% C 0.207 H 308.3°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#C171FD
RGBrgb(193, 113, 253)
HSLhsl(274, 97%, 72%)
HSVhsv(274, 55%, 99%)
CMYKcmyk(23.7%, 55.3%, 0%, 0.8%)
CIE-LABlab(61.86, 55.88, -57.76)
CIE-LCHlch(61.86, 80.37, 314.05°)
OKLaboklab(69.49% 0.1284 -0.1624)
OKLCHoklch(69.49% 0.207 308.3)
XYZxyz(45.6235, 30.2402, 96.3429)
Luminance0.3024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C171FD #ADFD71
analogous
#7B71FD #C171FD #FD71F3
triadic
#C171FD #FDC171 #71FDC1
tetradic
#C171FD #FD7B71 #ADFD71 #71F3FD
square
#C171FD #FD7B71 #ADFD71 #71F3FD
split-complementary
#C171FD #F3FD71 #71FD7B
monochromatic
#8B03F0 #A735FC #C171FD #DBADFE #F2E1FF

Accessibility & contrast

On white

2.98
#C171FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#C171FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C171FD
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C171FD#FFFFFF#000000##000000
##C171FD1.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4292FF
Deuteranopia (green-blind)
#5F96FA
Tritanopia (blue-blind)
#B88BAC
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c171fd;
/* rgb */ color: rgb(193, 113, 253);
/* oklch */ color: oklch(69.5% 0.207 308.3);
Tailwind
colors: {
  custom: {
    50: '#d79dff',
    500: '#c171fd',
    950: '#000000',
  },
}
SCSS
$custom: #c171fd;
$custom-light: #d79dff;
$custom-dark: #000000;
JSON
{
  "hex": "#c171fd",
  "rgb": {
    "r": 193,
    "g": 113,
    "b": 253
  },
  "hsl": {
    "h": 274.286,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.69485,
    "c": 0.20702,
    "h": 308.3
  },
  "luminance": 0.3024
}

Semantic roles & 50–950 ramp

primary
#C171FD
secondary
#E2F7D3
accent
#E60062
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #C171FD

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

Preview Lab → · Contrast checker → · Palette generator →

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