#C170F5#C170F5

#C170F5 is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.9% C 0.200 H 310.3°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#C170F5
RGBrgb(193, 112, 245)
HSLhsl(277, 87%, 70%)
HSVhsv(277, 54%, 96%)
CMYKcmyk(21.2%, 54.3%, 0%, 3.9%)
CIE-LABlab(61.24, 54.65, -54.34)
CIE-LCHlch(61.24, 77.07, 315.16°)
OKLaboklab(68.89% 0.1293 -0.1524)
OKLCHoklch(68.89% 0.2 310.3)
XYZxyz(44.2648, 29.5192, 89.7344)
Luminance0.2952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170F5 #A4F570
analogous
#7E70F5 #C170F5 #F570E7
triadic
#C170F5 #F5C170 #70F5C1
tetradic
#C170F5 #F57E70 #A4F570 #70E7F5
square
#C170F5 #F57E70 #A4F570 #70E7F5
split-complementary
#C170F5 #E7F570 #70F57E
monochromatic
#8C0FDB #A837F1 #C170F5 #DAA9F9 #F3E2FD

Accessibility & contrast

On white

3.04
#C170F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#C170F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170F5
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170F5#FFFFFF#000000##000000
##C170F51.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4890F9
Deuteranopia (green-blind)
#6495F2
Tritanopia (blue-blind)
#BA87A8
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c170f5;
/* rgb */ color: rgb(193, 112, 245);
/* oklch */ color: oklch(68.9% 0.200 310.3);
Tailwind
colors: {
  custom: {
    50: '#d79cf9',
    500: '#c170f5',
    950: '#000000',
  },
}
SCSS
$custom: #c170f5;
$custom-light: #d79cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#c170f5",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 245
  },
  "hsl": {
    "h": 276.541,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.68887,
    "c": 0.19985,
    "h": 310.3
  },
  "luminance": 0.29518
}

Semantic roles & 50–950 ramp

primary
#C170F5
secondary
#DCF3CE
accent
#E3025A
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170F5

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

Preview Lab → · Contrast checker → · Palette generator →

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