#C170F4#C170F4

#C170F4 is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.8% C 0.199 H 310.5°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#C170F4
RGBrgb(193, 112, 244)
HSLhsl(277, 86%, 70%)
HSVhsv(277, 54%, 96%)
CMYKcmyk(20.9%, 54.1%, 0%, 4.3%)
CIE-LABlab(61.18, 54.43, -53.88)
CIE-LCHlch(61.18, 76.58, 315.29°)
OKLaboklab(68.83% 0.1292 -0.151)
OKLCHoklch(68.83% 0.199 310.5)
XYZxyz(44.1126, 29.4583, 88.9326)
Luminance0.2946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170F4 #A3F470
analogous
#7F70F4 #C170F4 #F470E5
triadic
#C170F4 #F4C170 #70F4C1
tetradic
#C170F4 #F47F70 #A3F470 #70E5F4
square
#C170F4 #F47F70 #A3F470 #70E5F4
split-complementary
#C170F4 #E5F470 #70F47F
monochromatic
#8C11D9 #A837F0 #C170F4 #DAA9F8 #F2E2FD

Accessibility & contrast

On white

3.05
#C170F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#C170F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170F4
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170F4#FFFFFF#000000##000000
##C170F41.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4990F8
Deuteranopia (green-blind)
#6595F1
Tritanopia (blue-blind)
#BB87A8
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c170f4;
/* rgb */ color: rgb(193, 112, 244);
/* oklch */ color: oklch(68.8% 0.199 310.5);
Tailwind
colors: {
  custom: {
    50: '#d79cf8',
    500: '#c170f4',
    950: '#000000',
  },
}
SCSS
$custom: #c170f4;
$custom-light: #d79cf8;
$custom-dark: #000000;
JSON
{
  "hex": "#c170f4",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 244
  },
  "hsl": {
    "h": 276.818,
    "s": 85.714,
    "l": 69.804
  },
  "oklch": {
    "l": 0.68831,
    "c": 0.19877,
    "h": 310.5
  },
  "luminance": 0.29457
}

Semantic roles & 50–950 ramp

primary
#C170F4
secondary
#DCF3CD
accent
#E20359
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170F4

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

Preview Lab → · Contrast checker → · Palette generator →

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