#C171FB#C171FB

#C171FB is a light, highly saturated violet. Relative luminance 0.301; OKLCH L 69.4% C 0.205 H 308.8°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#C171FB
RGBrgb(193, 113, 251)
HSLhsl(275, 95%, 71%)
HSVhsv(275, 55%, 98%)
CMYKcmyk(23.1%, 55%, 0%, 1.6%)
CIE-LABlab(61.75, 55.44, -56.84)
CIE-LCHlch(61.75, 79.40, 314.29°)
OKLaboklab(69.37% 0.1283 -0.1597)
OKLCHoklch(69.37% 0.205 308.8)
XYZxyz(45.3066, 30.1134, 94.6738)
Luminance0.3011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C171FB #ABFB71
analogous
#7C71FB #C171FB #FB71F0
triadic
#C171FB #FBC171 #71FBC1
tetradic
#C171FB #FB7C71 #ABFB71 #71F0FB
square
#C171FB #FB7C71 #ABFB71 #71F0FB
split-complementary
#C171FB #F0FB71 #71FB7C
monochromatic
#8B07EB #A735F9 #C171FB #DBADFD #F2E1FE

Accessibility & contrast

On white

2.99
#C171FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#C171FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C171FB
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C171FB#FFFFFF#000000##000000
##C171FB1.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4492FF
Deuteranopia (green-blind)
#6096F8
Tritanopia (blue-blind)
#B98AAB
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c171fb;
/* rgb */ color: rgb(193, 113, 251);
/* oklch */ color: oklch(69.4% 0.205 308.8);
Tailwind
colors: {
  custom: {
    50: '#d79dfd',
    500: '#c171fb',
    950: '#000000',
  },
}
SCSS
$custom: #c171fb;
$custom-light: #d79dfd;
$custom-dark: #000000;
JSON
{
  "hex": "#c171fb",
  "rgb": {
    "r": 193,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 274.783,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.6937,
    "c": 0.20484,
    "h": 308.8
  },
  "luminance": 0.30113
}

Semantic roles & 50–950 ramp

primary
#C171FB
secondary
#E1F6D2
accent
#E60060
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #C171FB

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

Preview Lab → · Contrast checker → · Palette generator →

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