#C170FB#C170FB

#C170FB is a light, highly saturated violet. Relative luminance 0.299; OKLCH L 69.2% C 0.206 H 308.9°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#C170FB
RGBrgb(193, 112, 251)
HSLhsl(275, 95%, 71%)
HSVhsv(275, 55%, 98%)
CMYKcmyk(23.1%, 55.4%, 0%, 1.6%)
CIE-LABlab(61.56, 55.95, -57.14)
CIE-LCHlch(61.56, 79.97, 314.40°)
OKLaboklab(69.23% 0.1295 -0.1606)
OKLCHoklch(69.23% 0.206 308.9)
XYZxyz(45.1957, 29.8915, 94.6368)
Luminance0.2989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170FB #AAFB70
analogous
#7B70FB #C170FB #FB70EF
triadic
#C170FB #FBC170 #70FBC1
tetradic
#C170FB #FB7B70 #AAFB70 #70EFFB
square
#C170FB #FB7B70 #AAFB70 #70EFFB
split-complementary
#C170FB #EFFB70 #70FB7B
monochromatic
#8B07EA #A734F9 #C170FB #DBACFD #F2E1FE

Accessibility & contrast

On white

3.01
#C170FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#C170FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170FB
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170FB#FFFFFF#000000##000000
##C170FB1.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4291FF
Deuteranopia (green-blind)
#5F96F8
Tritanopia (blue-blind)
#B989AB
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c170fb;
/* rgb */ color: rgb(193, 112, 251);
/* oklch */ color: oklch(69.2% 0.206 308.9);
Tailwind
colors: {
  custom: {
    50: '#d79cfd',
    500: '#c170fb',
    950: '#000000',
  },
}
SCSS
$custom: #c170fb;
$custom-light: #d79cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#c170fb",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 251
  },
  "hsl": {
    "h": 274.964,
    "s": 94.558,
    "l": 71.176
  },
  "oklch": {
    "l": 0.69229,
    "c": 0.20632,
    "h": 308.9
  },
  "luminance": 0.29891
}

Semantic roles & 50–950 ramp

primary
#C170FB
secondary
#E0F6D1
accent
#E60060
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #C170FB

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

Preview Lab → · Contrast checker → · Palette generator →

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