#C17AFD#C17AFD

#C17AFD is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.8% C 0.194 H 307.2°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#C17AFD
RGBrgb(193, 122, 253)
HSLhsl(273, 97%, 74%)
HSVhsv(273, 52%, 99%)
CMYKcmyk(23.7%, 51.8%, 0%, 0.8%)
CIE-LABlab(63.63, 51.25, -54.95)
CIE-LCHlch(63.63, 75.14, 313.01°)
OKLaboklab(70.79% 0.117 -0.1542)
OKLCHoklch(70.79% 0.194 307.2)
XYZxyz(46.6779, 32.3489, 96.6944)
Luminance0.3235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C17AFD #B6FD7A
analogous
#7F7AFD #C17AFD #FD7AF8
triadic
#C17AFD #FDC17A #7AFDC1
tetradic
#C17AFD #FD7F7A #B6FD7A #7AF8FD
square
#C17AFD #FD7F7A #B6FD7A #7AF8FD
split-complementary
#C17AFD #F8FD7A #7AFD7F
monochromatic
#8904F9 #A53EFC #C17AFD #DDB6FE #F1E1FF

Accessibility & contrast

On white

2.81
#C17AFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#C17AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C17AFD
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C17AFD#FFFFFF#000000##000000
##C17AFD1.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5297FF
Deuteranopia (green-blind)
#689BFA
Tritanopia (blue-blind)
#B891B0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #c17afd;
/* rgb */ color: rgb(193, 122, 253);
/* oklch */ color: oklch(70.8% 0.194 307.2);
Tailwind
colors: {
  custom: {
    50: '#d7a2ff',
    500: '#c17afd',
    950: '#000000',
  },
}
SCSS
$custom: #c17afd;
$custom-light: #d7a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#c17afd",
  "rgb": {
    "r": 193,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 272.519,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.70788,
    "c": 0.19355,
    "h": 307.2
  },
  "luminance": 0.32348
}

Semantic roles & 50–950 ramp

primary
#C17AFD
secondary
#E4F7D4
accent
#E60069
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #C17AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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