#C17FF2#C17FF2

#C17FF2 is a light, vivid violet. Relative luminance 0.329; OKLCH L 71.0% C 0.173 H 309.1°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#C17FF2
RGBrgb(193, 127, 242)
HSLhsl(274, 82%, 72%)
HSVhsv(274, 48%, 95%)
CMYKcmyk(20.2%, 47.5%, 0%, 5.1%)
CIE-LABlab(64.10, 46.17, -48.15)
CIE-LCHlch(64.10, 66.71, 313.80°)
OKLaboklab(70.96% 0.1093 -0.1344)
OKLCHoklch(70.96% 0.173 309.1)
XYZxyz(45.6057, 32.9277, 87.9404)
Luminance0.3293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C17FF2 #B0F27F
analogous
#887FF2 #C17FF2 #F27FE9
triadic
#C17FF2 #F2C17F #7FF2C1
tetradic
#C17FF2 #F2887F #B0F27F #7FE9F2
square
#C17FF2 #F2887F #B0F27F #7FE9F2
split-complementary
#C17FF2 #E9F27F #7FF288
monochromatic
#8A17E0 #A647EC #C17FF2 #DCB7F8 #F2E3FC

Accessibility & contrast

On white

2.77
#C17FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#C17FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C17FF2
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C17FF2#FFFFFF#000000##000000
##C17FF21.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6298F6
Deuteranopia (green-blind)
#749CEF
Tritanopia (blue-blind)
#BB92AD
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #c17ff2;
/* rgb */ color: rgb(193, 127, 242);
/* oklch */ color: oklch(71.0% 0.173 309.1);
Tailwind
colors: {
  custom: {
    50: '#d6a6f7',
    500: '#c17ff2',
    950: '#000000',
  },
}
SCSS
$custom: #c17ff2;
$custom-light: #d6a6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c17ff2",
  "rgb": {
    "r": 193,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 274.435,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.70958,
    "c": 0.17326,
    "h": 309.1
  },
  "luminance": 0.32927
}

Semantic roles & 50–950 ramp

primary
#C17FF2
secondary
#E3F4D7
accent
#DE0863
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C17FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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