#C17DF8#C17DF8

#C17DF8 is a light, vivid violet. Relative luminance 0.328; OKLCH L 71.0% C 0.183 H 307.9°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#C17DF8
RGBrgb(193, 125, 248)
HSLhsl(273, 90%, 73%)
HSVhsv(273, 50%, 97%)
CMYKcmyk(22.2%, 49.6%, 0%, 2.7%)
CIE-LABlab(63.98, 48.56, -51.64)
CIE-LCHlch(63.98, 70.88, 313.24°)
OKLaboklab(70.97% 0.1126 -0.1446)
OKLCHoklch(70.97% 0.183 307.9)
XYZxyz(46.2659, 32.7826, 92.6791)
Luminance0.3278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C17DF8 #B4F87D
analogous
#837DF8 #C17DF8 #F87DF1
triadic
#C17DF8 #F8C17D #7DF8C1
tetradic
#C17DF8 #F8837D #B4F87D #7DF1F8
square
#C17DF8 #F8837D #B4F87D #7DF1F8
split-complementary
#C17DF8 #F1F87D #7DF883
monochromatic
#890DEE #A543F5 #C17DF8 #DDB7FB #F1E2FD

Accessibility & contrast

On white

2.78
#C17DF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#C17DF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C17DF8
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C17DF8#FFFFFF#000000##000000
##C17DF81.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B98FC
Deuteranopia (green-blind)
#6F9CF5
Tritanopia (blue-blind)
#B992AF
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #c17df8;
/* rgb */ color: rgb(193, 125, 248);
/* oklch */ color: oklch(71.0% 0.183 307.9);
Tailwind
colors: {
  custom: {
    50: '#d6a4fb',
    500: '#c17df8',
    950: '#000000',
  },
}
SCSS
$custom: #c17df8;
$custom-light: #d6a4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#c17df8",
  "rgb": {
    "r": 193,
    "g": 125,
    "b": 248
  },
  "hsl": {
    "h": 273.171,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70967,
    "c": 0.18326,
    "h": 307.9
  },
  "luminance": 0.32782
}

Semantic roles & 50–950 ramp

primary
#C17DF8
secondary
#E4F6D5
accent
#E60067
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C17DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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