#C170F0#C170F0

#C170F0 is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.6% C 0.194 H 311.5°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#C170F0
RGBrgb(193, 112, 240)
HSLhsl(278, 81%, 69%)
HSVhsv(278, 53%, 94%)
CMYKcmyk(19.6%, 53.3%, 0%, 5.9%)
CIE-LABlab(60.97, 53.57, -52.00)
CIE-LCHlch(60.97, 74.66, 315.86°)
OKLaboklab(68.61% 0.129 -0.1456)
OKLCHoklch(68.61% 0.194 311.5)
XYZxyz(43.5118, 29.2180, 85.7687)
Luminance0.2922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170F0 #9FF070
analogous
#8170F0 #C170F0 #F070DF
triadic
#C170F0 #F0C170 #70F0C1
tetradic
#C170F0 #F08170 #9FF070 #70DFF0
square
#C170F0 #F08170 #9FF070 #70DFF0
split-complementary
#C170F0 #DFF070 #70F081
monochromatic
#8C16D0 #A939EA #C170F0 #D9A7F6 #F1DFFC

Accessibility & contrast

On white

3.07
#C170F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#C170F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170F0
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170F0#FFFFFF#000000##000000
##C170F01.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8FF4
Deuteranopia (green-blind)
#6795ED
Tritanopia (blue-blind)
#BC86A6
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c170f0;
/* rgb */ color: rgb(193, 112, 240);
/* oklch */ color: oklch(68.6% 0.194 311.5);
Tailwind
colors: {
  custom: {
    50: '#d69cf5',
    500: '#c170f0',
    950: '#000000',
  },
}
SCSS
$custom: #c170f0;
$custom-light: #d69cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#c170f0",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 240
  },
  "hsl": {
    "h": 277.969,
    "s": 81.013,
    "l": 69.02
  },
  "oklch": {
    "l": 0.68608,
    "c": 0.19446,
    "h": 311.5
  },
  "luminance": 0.29217
}

Semantic roles & 50–950 ramp

primary
#C170F0
secondary
#D9F1CB
accent
#DD0856
background
#FDF9FF
surface
#FBF2FE
border
#D4CCD6
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170F0

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

Preview Lab → · Contrast checker → · Palette generator →

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