#C166E2#C166E2

#C166E2 is a light, vivid purple. Relative luminance 0.263; OKLCH L 66.4% C 0.195 H 316.3°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#C166E2
RGBrgb(193, 102, 226)
HSLhsl(284, 68%, 64%)
HSVhsv(284, 55%, 89%)
CMYKcmyk(14.6%, 54.9%, 0%, 11.4%)
CIE-LABlab(58.35, 55.67, -48.35)
CIE-LCHlch(58.35, 73.74, 319.03°)
OKLaboklab(66.44% 0.1409 -0.1349)
OKLCHoklch(66.44% 0.195 316.3)
XYZxyz(40.4691, 26.3325, 74.8877)
Luminance0.2633 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C166E2 #87E266
analogous
#8366E2 #C166E2 #E266C5
triadic
#C166E2 #E2C166 #66E2C1
tetradic
#C166E2 #E28366 #87E266 #66C5E2
square
#C166E2 #E28366 #87E266 #66C5E2
split-complementary
#C166E2 #C5E266 #66E283
monochromatic
#8821AD #AC33D8 #C166E2 #D699EC #EBCDF6

Accessibility & contrast

On white

3.35
#C166E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#C166E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C166E2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C166E2#FFFFFF#000000##000000
##C166E21.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4887E6
Deuteranopia (green-blind)
#678FDF
Tritanopia (blue-blind)
#BF7A9B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #c166e2;
/* rgb */ color: rgb(193, 102, 226);
/* oklch */ color: oklch(66.4% 0.195 316.3);
Tailwind
colors: {
  custom: {
    50: '#d695eb',
    500: '#c166e2',
    950: '#000000',
  },
}
SCSS
$custom: #c166e2;
$custom-light: #d695eb;
$custom-dark: #000000;
JSON
{
  "hex": "#c166e2",
  "rgb": {
    "r": 193,
    "g": 102,
    "b": 226
  },
  "hsl": {
    "h": 284.032,
    "s": 68.132,
    "l": 64.314
  },
  "oklch": {
    "l": 0.66444,
    "c": 0.19508,
    "h": 316.3
  },
  "luminance": 0.26331
}

Semantic roles & 50–950 ramp

primary
#C166E2
secondary
#C8E7BC
accent
#D01547
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C166E2

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

Preview Lab → · Contrast checker → · Palette generator →

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