#C17DFE#C17DFE

#C17DFE is a light, vivid violet. Relative luminance 0.332; OKLCH L 71.3% C 0.190 H 306.5°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#C17DFE
RGBrgb(193, 125, 254)
HSLhsl(272, 98%, 74%)
HSVhsv(272, 51%, 100%)
CMYKcmyk(24%, 50.8%, 0%, 0.4%)
CIE-LABlab(64.29, 49.90, -54.45)
CIE-LCHlch(64.29, 73.85, 312.50°)
OKLaboklab(71.29% 0.1132 -0.1528)
OKLCHoklch(71.29% 0.19 306.5)
XYZxyz(47.2117, 33.1609, 97.6602)
Luminance0.3316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C17DFE #BAFE7D
analogous
#817DFE #C17DFE #FE7DFA
triadic
#C17DFE #FEC17D #7DFEC1
tetradic
#C17DFE #FE817D #BAFE7D #7DFAFE
square
#C17DFE #FE817D #BAFE7D #7DFAFE
split-complementary
#C17DFE #FAFE7D #7DFE81
monochromatic
#8704FD #A440FE #C17DFE #DEBAFE #F1E1FF

Accessibility & contrast

On white

2.75
#C17DFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#C17DFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C17DFE
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C17DFE#FFFFFF#000000##000000
##C17DFE1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5699FF
Deuteranopia (green-blind)
#6B9CFB
Tritanopia (blue-blind)
#B894B2
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #c17dfe;
/* rgb */ color: rgb(193, 125, 254);
/* oklch */ color: oklch(71.3% 0.190 306.5);
Tailwind
colors: {
  custom: {
    50: '#d6a4ff',
    500: '#c17dfe',
    950: '#000000',
  },
}
SCSS
$custom: #c17dfe;
$custom-light: #d6a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#c17dfe",
  "rgb": {
    "r": 193,
    "g": 125,
    "b": 254
  },
  "hsl": {
    "h": 271.628,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.71294,
    "c": 0.19011,
    "h": 306.5
  },
  "luminance": 0.3316
}

Semantic roles & 50–950 ramp

primary
#C17DFE
secondary
#E5F7D4
accent
#E6006D
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #C17DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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