#C170F1#C170F1

#C170F1 is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.7% C 0.196 H 311.3°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#C170F1
RGBrgb(193, 112, 241)
HSLhsl(278, 82%, 69%)
HSVhsv(278, 54%, 95%)
CMYKcmyk(19.9%, 53.5%, 0%, 5.5%)
CIE-LABlab(61.03, 53.79, -52.47)
CIE-LCHlch(61.03, 75.14, 315.71°)
OKLaboklab(68.66% 0.129 -0.1469)
OKLCHoklch(68.66% 0.196 311.3)
XYZxyz(43.6608, 29.2776, 86.5532)
Luminance0.2928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170F1 #A0F170
analogous
#8170F1 #C170F1 #F170E1
triadic
#C170F1 #F1C170 #70F1C1
tetradic
#C170F1 #F18170 #A0F170 #70E1F1
square
#C170F1 #F18170 #A0F170 #70E1F1
split-complementary
#C170F1 #E1F170 #70F181
monochromatic
#8C15D2 #A938EC #C170F1 #D9A8F6 #F1DFFC

Accessibility & contrast

On white

3.06
#C170F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#C170F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170F1
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170F1#FFFFFF#000000##000000
##C170F11.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8FF5
Deuteranopia (green-blind)
#6795EE
Tritanopia (blue-blind)
#BB86A6
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c170f1;
/* rgb */ color: rgb(193, 112, 241);
/* oklch */ color: oklch(68.7% 0.196 311.3);
Tailwind
colors: {
  custom: {
    50: '#d69cf6',
    500: '#c170f1',
    950: '#000000',
  },
}
SCSS
$custom: #c170f1;
$custom-light: #d69cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#c170f1",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 241
  },
  "hsl": {
    "h": 277.674,
    "s": 82.166,
    "l": 69.216
  },
  "oklch": {
    "l": 0.68663,
    "c": 0.19554,
    "h": 311.3
  },
  "luminance": 0.29277
}

Semantic roles & 50–950 ramp

primary
#C170F1
secondary
#DAF1CC
accent
#DF0757
background
#FDF9FF
surface
#FBF2FE
border
#D4CCD6
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170F1

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

Preview Lab → · Contrast checker → · Palette generator →

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