#C170F6#C170F6

#C170F6 is a light, highly saturated violet. Relative luminance 0.296; OKLCH L 68.9% C 0.201 H 310.1°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#C170F6
RGBrgb(193, 112, 246)
HSLhsl(276, 88%, 70%)
HSVhsv(276, 54%, 96%)
CMYKcmyk(21.5%, 54.5%, 0%, 3.5%)
CIE-LABlab(61.29, 54.86, -54.81)
CIE-LCHlch(61.29, 77.55, 315.03°)
OKLaboklab(68.94% 0.1293 -0.1538)
OKLCHoklch(68.94% 0.201 310.1)
XYZxyz(44.4179, 29.5804, 90.5406)
Luminance0.2958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170F6 #A5F670
analogous
#7E70F6 #C170F6 #F670E8
triadic
#C170F6 #F6C170 #70F6C1
tetradic
#C170F6 #F67E70 #A5F670 #70E8F6
square
#C170F6 #F67E70 #A5F670 #70E8F6
split-complementary
#C170F6 #E8F670 #70F67E
monochromatic
#8C0EDE #A836F2 #C170F6 #DAAAFA #F3E2FD

Accessibility & contrast

On white

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

On black

6.92
#C170F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170F6
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170F6#FFFFFF#000000##000000
##C170F61.003.046.926.92
#FFFFFF3.041.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4790FA
Deuteranopia (green-blind)
#6395F3
Tritanopia (blue-blind)
#BA88A9
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c170f6;
/* rgb */ color: rgb(193, 112, 246);
/* oklch */ color: oklch(68.9% 0.201 310.1);
Tailwind
colors: {
  custom: {
    50: '#d79cfa',
    500: '#c170f6',
    950: '#000000',
  },
}
SCSS
$custom: #c170f6;
$custom-light: #d79cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#c170f6",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 246
  },
  "hsl": {
    "h": 276.269,
    "s": 88.158,
    "l": 70.196
  },
  "oklch": {
    "l": 0.68944,
    "c": 0.20092,
    "h": 310.1
  },
  "luminance": 0.2958
}

Semantic roles & 50–950 ramp

primary
#C170F6
secondary
#DDF3CE
accent
#E5015B
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170F6

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

Preview Lab → · Contrast checker → · Palette generator →

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