#C173F2#C173F2

#C173F2 is a light, vivid violet. Relative luminance 0.300; OKLCH L 69.2% C 0.192 H 310.7°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#C173F2
RGBrgb(193, 115, 242)
HSLhsl(277, 83%, 70%)
HSVhsv(277, 52%, 95%)
CMYKcmyk(20.2%, 52.5%, 0%, 5.1%)
CIE-LABlab(61.66, 52.46, -52.01)
CIE-LCHlch(61.66, 73.87, 315.25°)
OKLaboklab(69.15% 0.1252 -0.1456)
OKLCHoklch(69.15% 0.192 310.7)
XYZxyz(44.1471, 30.0106, 87.4542)
Luminance0.3001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C173F2 #A4F273
analogous
#8173F2 #C173F2 #F273E4
triadic
#C173F2 #F2C173 #73F2C1
tetradic
#C173F2 #F28173 #A4F273 #73E4F2
square
#C173F2 #F28173 #A4F273 #73E4F2
split-complementary
#C173F2 #E4F273 #73F281
monochromatic
#8C14D7 #A83BED #C173F2 #DAABF7 #F3E3FC

Accessibility & contrast

On white

3.00
#C173F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#C173F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C173F2
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C173F2#FFFFFF#000000##000000
##C173F21.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5091F6
Deuteranopia (green-blind)
#6996EF
Tritanopia (blue-blind)
#BB89A8
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c173f2;
/* rgb */ color: rgb(193, 115, 242);
/* oklch */ color: oklch(69.2% 0.192 310.7);
Tailwind
colors: {
  custom: {
    50: '#d69ef7',
    500: '#c173f2',
    950: '#000000',
  },
}
SCSS
$custom: #c173f2;
$custom-light: #d69ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#c173f2",
  "rgb": {
    "r": 193,
    "g": 115,
    "b": 242
  },
  "hsl": {
    "h": 276.85,
    "s": 83.007,
    "l": 70
  },
  "oklch": {
    "l": 0.6915,
    "c": 0.19204,
    "h": 310.7
  },
  "luminance": 0.3001
}

Semantic roles & 50–950 ramp

primary
#C173F2
secondary
#DCF2CF
accent
#DF065A
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150F17
muted
#837E85

Preview Lab

Preview with #C173F2

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

Preview Lab → · Contrast checker → · Palette generator →

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