#C170F9#C170F9

#C170F9 is a light, highly saturated violet. Relative luminance 0.298; OKLCH L 69.1% C 0.204 H 309.4°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#C170F9
RGBrgb(193, 112, 249)
HSLhsl(275, 92%, 71%)
HSVhsv(275, 55%, 98%)
CMYKcmyk(22.5%, 55%, 0%, 2.4%)
CIE-LABlab(61.45, 55.51, -56.21)
CIE-LCHlch(61.45, 79.00, 314.64°)
OKLaboklab(69.11% 0.1295 -0.1579)
OKLCHoklch(69.11% 0.204 309.4)
XYZxyz(44.8821, 29.7661, 92.9852)
Luminance0.2977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170F9 #A8F970
analogous
#7C70F9 #C170F9 #F970ED
triadic
#C170F9 #F9C170 #70F9C1
tetradic
#C170F9 #F97C70 #A8F970 #70EDF9
square
#C170F9 #F97C70 #A8F970 #70EDF9
split-complementary
#C170F9 #EDF970 #70F97C
monochromatic
#8B0AE5 #A835F7 #C170F9 #DAABFB #F2E2FE

Accessibility & contrast

On white

3.02
#C170F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#C170F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170F9
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170F9#FFFFFF#000000##000000
##C170F91.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4491FE
Deuteranopia (green-blind)
#6196F6
Tritanopia (blue-blind)
#B989AA
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c170f9;
/* rgb */ color: rgb(193, 112, 249);
/* oklch */ color: oklch(69.1% 0.204 309.4);
Tailwind
colors: {
  custom: {
    50: '#d79cfc',
    500: '#c170f9',
    950: '#000000',
  },
}
SCSS
$custom: #c170f9;
$custom-light: #d79cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#c170f9",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 249
  },
  "hsl": {
    "h": 275.474,
    "s": 91.946,
    "l": 70.784
  },
  "oklch": {
    "l": 0.69114,
    "c": 0.20416,
    "h": 309.4
  },
  "luminance": 0.29765
}

Semantic roles & 50–950 ramp

primary
#C170F9
secondary
#DFF5D0
accent
#E6005E
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170F9

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

Preview Lab → · Contrast checker → · Palette generator →

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