#C170FC#C170FC

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

Color values

HEX#C170FC
RGBrgb(193, 112, 252)
HSLhsl(275, 96%, 71%)
HSVhsv(275, 56%, 99%)
CMYKcmyk(23.4%, 55.6%, 0%, 1.2%)
CIE-LABlab(61.62, 56.17, -57.61)
CIE-LCHlch(61.62, 80.46, 314.28°)
OKLaboklab(69.29% 0.1296 -0.1619)
OKLCHoklch(69.29% 0.207 308.7)
XYZxyz(45.3537, 29.9548, 95.4692)
Luminance0.2995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170FC #ABFC70
analogous
#7B70FC #C170FC #FC70F1
triadic
#C170FC #FCC170 #70FCC1
tetradic
#C170FC #FC7B70 #ABFC70 #70F1FC
square
#C170FC #FC7B70 #ABFC70 #70F1FC
split-complementary
#C170FC #F1FC70 #70FC7B
monochromatic
#8B05ED #A734FB #C170FC #DBACFD #F2E1FE

Accessibility & contrast

On white

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

On black

6.99
#C170FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170FC
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170FC#FFFFFF#000000##000000
##C170FC1.003.006.996.99
#FFFFFF3.001.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4191FF
Deuteranopia (green-blind)
#5F96F9
Tritanopia (blue-blind)
#B98AAC
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c170fc;
/* rgb */ color: rgb(193, 112, 252);
/* oklch */ color: oklch(69.3% 0.207 308.7);
Tailwind
colors: {
  custom: {
    50: '#d79cfe',
    500: '#c170fc',
    950: '#000000',
  },
}
SCSS
$custom: #c170fc;
$custom-light: #d79cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#c170fc",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 252
  },
  "hsl": {
    "h": 274.714,
    "s": 95.89,
    "l": 71.373
  },
  "oklch": {
    "l": 0.69287,
    "c": 0.2074,
    "h": 308.7
  },
  "luminance": 0.29954
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C170FC

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

Preview Lab → · Contrast checker → · Palette generator →

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