#C170F2#C170F2

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

Color values

HEX#C170F2
RGBrgb(193, 112, 242)
HSLhsl(277, 83%, 69%)
HSVhsv(277, 54%, 95%)
CMYKcmyk(20.2%, 53.7%, 0%, 5.1%)
CIE-LABlab(61.08, 54.00, -52.94)
CIE-LCHlch(61.08, 75.62, 315.57°)
OKLaboklab(68.72% 0.1291 -0.1483)
OKLCHoklch(68.72% 0.197 311)
XYZxyz(43.8106, 29.3375, 87.3420)
Luminance0.2934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170F2 #A1F270
analogous
#8070F2 #C170F2 #F270E2
triadic
#C170F2 #F2C170 #70F2C1
tetradic
#C170F2 #F28070 #A1F270 #70E2F2
square
#C170F2 #F28070 #A1F270 #70E2F2
split-complementary
#C170F2 #E2F270 #70F280
monochromatic
#8C13D4 #A938ED #C170F2 #D9A8F7 #F2E0FC

Accessibility & contrast

On white

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

On black

6.87
#C170F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170F2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170F2#FFFFFF#000000##000000
##C170F21.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8FF6
Deuteranopia (green-blind)
#6695EF
Tritanopia (blue-blind)
#BB86A7
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c170f2;
/* rgb */ color: rgb(193, 112, 242);
/* oklch */ color: oklch(68.7% 0.197 311.0);
Tailwind
colors: {
  custom: {
    50: '#d69cf7',
    500: '#c170f2',
    950: '#000000',
  },
}
SCSS
$custom: #c170f2;
$custom-light: #d69cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#c170f2",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 242
  },
  "hsl": {
    "h": 277.385,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.68719,
    "c": 0.19662,
    "h": 311
  },
  "luminance": 0.29337
}

Semantic roles & 50–950 ramp

primary
#C170F2
secondary
#DAF2CC
accent
#E00658
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170F2

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

Preview Lab → · Contrast checker → · Palette generator →

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