#C17DEC#C17DEC

#C17DEC is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.3% C 0.170 H 311.0°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#C17DEC
RGBrgb(193, 125, 236)
HSLhsl(277, 74%, 71%)
HSVhsv(277, 47%, 93%)
CMYKcmyk(18.2%, 47%, 0%, 7.5%)
CIE-LABlab(63.39, 45.93, -45.95)
CIE-LCHlch(63.39, 64.97, 314.99°)
OKLaboklab(70.34% 0.1113 -0.128)
OKLCHoklch(70.34% 0.17 311)
XYZxyz(44.4635, 32.0616, 83.1868)
Luminance0.3206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C17DEC #A8EC7D
analogous
#897DEC #C17DEC #EC7DDF
triadic
#C17DEC #ECC17D #7DECC1
tetradic
#C17DEC #EC897D #A8EC7D #7DDFEC
square
#C17DEC #EC897D #A8EC7D #7DDFEC
split-complementary
#C17DEC #DFEC7D #7DEC89
monochromatic
#8B1ED0 #A848E4 #C17DEC #DAB2F4 #F2E4FB

Accessibility & contrast

On white

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

On black

7.41
#C17DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C17DEC
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C17DEC#FFFFFF#000000##000000
##C17DEC1.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6396F0
Deuteranopia (green-blind)
#769BE9
Tritanopia (blue-blind)
#BC8FA9
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #c17dec;
/* rgb */ color: rgb(193, 125, 236);
/* oklch */ color: oklch(70.3% 0.170 311.0);
Tailwind
colors: {
  custom: {
    50: '#d6a4f2',
    500: '#c17dec',
    950: '#000000',
  },
}
SCSS
$custom: #c17dec;
$custom-light: #d6a4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#c17dec",
  "rgb": {
    "r": 193,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 276.757,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.70335,
    "c": 0.16962,
    "h": 311
  },
  "luminance": 0.32061
}

Semantic roles & 50–950 ramp

primary
#C17DEC
secondary
#DFF1D3
accent
#D70F5C
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #C17DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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