#C166EF#C166EF

#C166EF is a light, highly saturated violet. Relative luminance 0.271; OKLCH L 67.2% C 0.208 H 312.8°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#C166EF
RGBrgb(193, 102, 239)
HSLhsl(280, 81%, 67%)
HSVhsv(280, 57%, 94%)
CMYKcmyk(19.2%, 57.3%, 0%, 6.3%)
CIE-LABlab(59.04, 58.35, -54.51)
CIE-LCHlch(59.04, 79.85, 316.95°)
OKLaboklab(67.17% 0.1416 -0.1529)
OKLCHoklch(67.17% 0.208 312.8)
XYZxyz(42.3210, 27.0733, 84.6409)
Luminance0.2707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C166EF #94EF66
analogous
#7D66EF #C166EF #EF66D9
triadic
#C166EF #EFC166 #66EFC1
tetradic
#C166EF #EF7D66 #94EF66 #66D9EF
square
#C166EF #EF7D66 #94EF66 #66D9EF
split-complementary
#C166EF #D9EF66 #66EF7D
monochromatic
#8A15C6 #AB2FE9 #C166EF #D79DF5 #EED5FB

Accessibility & contrast

On white

3.27
#C166EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#C166EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C166EF
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C166EF#FFFFFF#000000##000000
##C166EF1.003.276.416.41
#FFFFFF3.271.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B89F3
Deuteranopia (green-blind)
#5F90EC
Tritanopia (blue-blind)
#BC7EA1
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #c166ef;
/* rgb */ color: rgb(193, 102, 239);
/* oklch */ color: oklch(67.2% 0.208 312.8);
Tailwind
colors: {
  custom: {
    50: '#d796f5',
    500: '#c166ef',
    950: '#000000',
  },
}
SCSS
$custom: #c166ef;
$custom-light: #d796f5;
$custom-dark: #000000;
JSON
{
  "hex": "#c166ef",
  "rgb": {
    "r": 193,
    "g": 102,
    "b": 239
  },
  "hsl": {
    "h": 279.854,
    "s": 81.065,
    "l": 66.863
  },
  "oklch": {
    "l": 0.67174,
    "c": 0.20834,
    "h": 312.8
  },
  "luminance": 0.27072
}

Semantic roles & 50–950 ramp

primary
#C166EF
secondary
#D1EEC2
accent
#DD0850
background
#FDF9FF
surface
#FBF2FE
border
#D4CCD6
text
#150E17
muted
#837E85

Preview Lab

Preview with #C166EF

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

Preview Lab → · Contrast checker → · Palette generator →

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