#C170F3#C170F3

#C170F3 is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.8% C 0.198 H 310.8°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#C170F3
RGBrgb(193, 112, 243)
HSLhsl(277, 85%, 70%)
HSVhsv(277, 54%, 95%)
CMYKcmyk(20.6%, 53.9%, 0%, 4.7%)
CIE-LABlab(61.13, 54.21, -53.41)
CIE-LCHlch(61.13, 76.10, 315.43°)
OKLaboklab(68.77% 0.1291 -0.1497)
OKLCHoklch(68.77% 0.198 310.8)
XYZxyz(43.9612, 29.3977, 88.1351)
Luminance0.2940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170F3 #A2F370
analogous
#8070F3 #C170F3 #F370E4
triadic
#C170F3 #F3C170 #70F3C1
tetradic
#C170F3 #F38070 #A2F370 #70E4F3
square
#C170F3 #F38070 #A2F370 #70E4F3
split-complementary
#C170F3 #E4F370 #70F380
monochromatic
#8C12D7 #A938EE #C170F3 #D9A8F8 #F2E1FC

Accessibility & contrast

On white

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

On black

6.88
#C170F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170F3
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170F3#FFFFFF#000000##000000
##C170F31.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A90F7
Deuteranopia (green-blind)
#6595F0
Tritanopia (blue-blind)
#BB87A7
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c170f3;
/* rgb */ color: rgb(193, 112, 243);
/* oklch */ color: oklch(68.8% 0.198 310.8);
Tailwind
colors: {
  custom: {
    50: '#d79cf7',
    500: '#c170f3',
    950: '#000000',
  },
}
SCSS
$custom: #c170f3;
$custom-light: #d79cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#c170f3",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 243
  },
  "hsl": {
    "h": 277.099,
    "s": 84.516,
    "l": 69.608
  },
  "oklch": {
    "l": 0.68775,
    "c": 0.19769,
    "h": 310.8
  },
  "luminance": 0.29397
}

Semantic roles & 50–950 ramp

primary
#C170F3
secondary
#DBF2CD
accent
#E10559
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C170F3

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

Preview Lab → · Contrast checker → · Palette generator →

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