#C766EC#C766EC

#C766EC is a light, highly saturated purple. Relative luminance 0.277; OKLCH L 67.7% C 0.208 H 315.7°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#C766EC
RGBrgb(199, 102, 236)
HSLhsl(283, 78%, 66%)
HSVhsv(283, 57%, 93%)
CMYKcmyk(15.7%, 56.8%, 0%, 7.5%)
CIE-LABlab(59.62, 59.21, -51.88)
CIE-LCHlch(59.62, 78.72, 318.77°)
OKLaboklab(67.7% 0.1486 -0.145)
OKLCHoklch(67.7% 0.208 315.7)
XYZxyz(43.4425, 27.7024, 82.3993)
Luminance0.2770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C766EC #8BEC66
analogous
#8466EC #C766EC #EC66CE
triadic
#C766EC #ECC766 #66ECC7
tetradic
#C766EC #EC8466 #8BEC66 #66CEEC
square
#C766EC #EC8466 #8BEC66 #66CEEC
split-complementary
#C766EC #CEEC66 #66EC84
monochromatic
#9118C0 #B330E5 #C766EC #DB9CF3 #EFD3FA

Accessibility & contrast

On white

3.21
#C766EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#C766EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C766EC
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C766EC#FFFFFF#000000##000000
##C766EC1.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#428AF0
Deuteranopia (green-blind)
#6692E9
Tritanopia (blue-blind)
#C57CA0
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #c766ec;
/* rgb */ color: rgb(199, 102, 236);
/* oklch */ color: oklch(67.7% 0.208 315.7);
Tailwind
colors: {
  custom: {
    50: '#db96f3',
    500: '#c766ec',
    950: '#000000',
  },
}
SCSS
$custom: #c766ec;
$custom-light: #db96f3;
$custom-dark: #000000;
JSON
{
  "hex": "#c766ec",
  "rgb": {
    "r": 199,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 283.433,
    "s": 77.907,
    "l": 66.275
  },
  "oklch": {
    "l": 0.67701,
    "c": 0.20764,
    "h": 315.7
  },
  "luminance": 0.27701
}

Semantic roles & 50–950 ramp

primary
#C766EC
secondary
#CDEDC1
accent
#DA0B44
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C766EC

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

Preview Lab → · Contrast checker → · Palette generator →

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