#C170F7#C170F7

#C170F7 is a light, highly saturated violet. Relative luminance 0.296; OKLCH L 69.0% C 0.202 H 309.8°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#C170F7
RGBrgb(193, 112, 247)
HSLhsl(276, 89%, 70%)
HSVhsv(276, 55%, 97%)
CMYKcmyk(21.9%, 54.7%, 0%, 3.1%)
CIE-LABlab(61.34, 55.08, -55.28)
CIE-LCHlch(61.34, 78.03, 314.90°)
OKLaboklab(69% 0.1294 -0.1551)
OKLCHoklch(69% 0.202 309.8)
XYZxyz(44.5718, 29.6420, 91.3511)
Luminance0.2964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170F7 #A6F770
analogous
#7D70F7 #C170F7 #F770E9
triadic
#C170F7 #F7C170 #70F7C1
tetradic
#C170F7 #F77D70 #A6F770 #70E9F7
square
#C170F7 #F77D70 #A6F770 #70E9F7
split-complementary
#C170F7 #E9F770 #70F77D
monochromatic
#8B0DE0 #A836F4 #C170F7 #DAAAFA #F2E2FD

Accessibility & contrast

On white

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

On black

6.93
#C170F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170F7
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170F7#FFFFFF#000000##000000
##C170F71.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4690FB
Deuteranopia (green-blind)
#6295F4
Tritanopia (blue-blind)
#BA88A9
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c170f7;
/* rgb */ color: rgb(193, 112, 247);
/* oklch */ color: oklch(69.0% 0.202 309.8);
Tailwind
colors: {
  custom: {
    50: '#d79cfa',
    500: '#c170f7',
    950: '#000000',
  },
}
SCSS
$custom: #c170f7;
$custom-light: #d79cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#c170f7",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 247
  },
  "hsl": {
    "h": 276,
    "s": 89.404,
    "l": 70.392
  },
  "oklch": {
    "l": 0.69,
    "c": 0.202,
    "h": 309.8
  },
  "luminance": 0.29641
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C170F7

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

Preview Lab → · Contrast checker → · Palette generator →

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