#C17CE7#C17CE7

#C17CE7 is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.9% C 0.166 H 312.5°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#C17CE7
RGBrgb(193, 124, 231)
HSLhsl(279, 69%, 70%)
HSVhsv(279, 46%, 91%)
CMYKcmyk(16.5%, 46.3%, 0%, 9.4%)
CIE-LABlab(62.95, 45.39, -43.88)
CIE-LCHlch(62.95, 63.13, 315.97°)
OKLaboklab(69.93% 0.112 -0.122)
OKLCHoklch(69.93% 0.166 312.5)
XYZxyz(43.6213, 31.5232, 79.3725)
Luminance0.3152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C17CE7 #A2E77C
analogous
#8C7CE7 #C17CE7 #E77CD7
triadic
#C17CE7 #E7C17C #7CE7C1
tetradic
#C17CE7 #E78C7C #A2E77C #7CD7E7
square
#C17CE7 #E78C7C #A2E77C #7CD7E7
split-complementary
#C17CE7 #D7E77C #7CE78C
monochromatic
#8C24C5 #A948DE #C17CE7 #D9B0F0 #F2E3FA

Accessibility & contrast

On white

2.87
#C17CE7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#C17CE7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C17CE7
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C17CE7#FFFFFF#000000##000000
##C17CE71.002.877.307.30
#FFFFFF2.871.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6595EB
Deuteranopia (green-blind)
#789AE4
Tritanopia (blue-blind)
#BD8CA7
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #c17ce7;
/* rgb */ color: rgb(193, 124, 231);
/* oklch */ color: oklch(69.9% 0.166 312.5);
Tailwind
colors: {
  custom: {
    50: '#d6a3ef',
    500: '#c17ce7',
    950: '#000000',
  },
}
SCSS
$custom: #c17ce7;
$custom-light: #d6a3ef;
$custom-dark: #000000;
JSON
{
  "hex": "#c17ce7",
  "rgb": {
    "r": 193,
    "g": 124,
    "b": 231
  },
  "hsl": {
    "h": 278.692,
    "s": 69.032,
    "l": 69.608
  },
  "oklch": {
    "l": 0.69925,
    "c": 0.16561,
    "h": 312.5
  },
  "luminance": 0.31522
}

Semantic roles & 50–950 ramp

primary
#C17CE7
secondary
#DBEFD0
accent
#D11557
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84

Preview Lab

Preview with #C17CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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