#C170F8#C170F8

#C170F8 is a light, highly saturated violet. Relative luminance 0.297; OKLCH L 69.1% C 0.203 H 309.6°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#C170F8
RGBrgb(193, 112, 248)
HSLhsl(276, 91%, 71%)
HSVhsv(276, 55%, 97%)
CMYKcmyk(22.2%, 54.8%, 0%, 2.7%)
CIE-LABlab(61.40, 55.30, -55.75)
CIE-LCHlch(61.40, 78.52, 314.77°)
OKLaboklab(69.06% 0.1294 -0.1565)
OKLCHoklch(69.06% 0.203 309.6)
XYZxyz(44.7265, 29.7039, 92.1660)
Luminance0.2970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170F8 #A7F870
analogous
#7D70F8 #C170F8 #F870EB
triadic
#C170F8 #F8C170 #70F8C1
tetradic
#C170F8 #F87D70 #A7F870 #70EBF8
square
#C170F8 #F87D70 #A7F870 #70EBF8
split-complementary
#C170F8 #EBF870 #70F87D
monochromatic
#8B0BE3 #A836F5 #C170F8 #DAAAFB #F2E2FE

Accessibility & contrast

On white

3.03
#C170F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#C170F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170F8
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170F8#FFFFFF#000000##000000
##C170F81.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4591FC
Deuteranopia (green-blind)
#6296F5
Tritanopia (blue-blind)
#BA88AA
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c170f8;
/* rgb */ color: rgb(193, 112, 248);
/* oklch */ color: oklch(69.1% 0.203 309.6);
Tailwind
colors: {
  custom: {
    50: '#d79cfb',
    500: '#c170f8',
    950: '#000000',
  },
}
SCSS
$custom: #c170f8;
$custom-light: #d79cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#c170f8",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 248
  },
  "hsl": {
    "h": 275.735,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.69057,
    "c": 0.20308,
    "h": 309.6
  },
  "luminance": 0.29703
}

Semantic roles & 50–950 ramp

primary
#C170F8
secondary
#DEF4CF
accent
#E6005D
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170F8

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

Preview Lab → · Contrast checker → · Palette generator →

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