#C17AFA#C17AFA

#C17AFA is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.6% C 0.190 H 307.9°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#C17AFA
RGBrgb(193, 122, 250)
HSLhsl(273, 93%, 73%)
HSVhsv(273, 51%, 98%)
CMYKcmyk(22.8%, 51.2%, 0%, 2%)
CIE-LABlab(63.47, 50.58, -53.55)
CIE-LCHlch(63.47, 73.66, 313.37°)
OKLaboklab(70.62% 0.1167 -0.1501)
OKLCHoklch(70.62% 0.19 307.9)
XYZxyz(46.2037, 32.1592, 94.1973)
Luminance0.3216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C17AFA #B3FA7A
analogous
#817AFA #C17AFA #FA7AF3
triadic
#C17AFA #FAC17A #7AFAC1
tetradic
#C17AFA #FA817A #B3FA7A #7AF3FA
square
#C17AFA #FA817A #B3FA7A #7AF3FA
split-complementary
#C17AFA #F3FA7A #7AFA81
monochromatic
#8909F1 #A63FF8 #C17AFA #DCB5FC #F1E2FE

Accessibility & contrast

On white

2.83
#C17AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#C17AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C17AFA
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C17AFA#FFFFFF#000000##000000
##C17AFA1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5597FE
Deuteranopia (green-blind)
#6A9BF7
Tritanopia (blue-blind)
#B990AF
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #c17afa;
/* rgb */ color: rgb(193, 122, 250);
/* oklch */ color: oklch(70.6% 0.190 307.9);
Tailwind
colors: {
  custom: {
    50: '#d6a2fc',
    500: '#c17afa',
    950: '#000000',
  },
}
SCSS
$custom: #c17afa;
$custom-light: #d6a2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#c17afa",
  "rgb": {
    "r": 193,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 273.281,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.70622,
    "c": 0.19017,
    "h": 307.9
  },
  "luminance": 0.32159
}

Semantic roles & 50–950 ramp

primary
#C17AFA
secondary
#E4F6D5
accent
#E60066
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C17AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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