#C766EB#C766EB

#C766EB is a light, highly saturated purple. Relative luminance 0.276; OKLCH L 67.6% C 0.207 H 316.0°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#C766EB
RGBrgb(199, 102, 235)
HSLhsl(284, 77%, 66%)
HSVhsv(284, 57%, 92%)
CMYKcmyk(15.3%, 56.6%, 0%, 7.8%)
CIE-LABlab(59.57, 59.00, -51.41)
CIE-LCHlch(59.57, 78.26, 318.94°)
OKLaboklab(67.65% 0.1486 -0.1436)
OKLCHoklch(67.65% 0.207 316)
XYZxyz(43.2977, 27.6445, 81.6363)
Luminance0.2764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C766EB #8AEB66
analogous
#8466EB #C766EB #EB66CD
triadic
#C766EB #EBC766 #66EBC7
tetradic
#C766EB #EB8466 #8AEB66 #66CDEB
square
#C766EB #EB8466 #8AEB66 #66CDEB
split-complementary
#C766EB #CDEB66 #66EB84
monochromatic
#9119BE #B330E4 #C766EB #DB9CF2 #EFD2F9

Accessibility & contrast

On white

3.22
#C766EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#C766EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C766EB
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C766EB#FFFFFF#000000##000000
##C766EB1.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#438AEF
Deuteranopia (green-blind)
#6792E8
Tritanopia (blue-blind)
#C57C9F
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #c766eb;
/* rgb */ color: rgb(199, 102, 235);
/* oklch */ color: oklch(67.6% 0.207 316.0);
Tailwind
colors: {
  custom: {
    50: '#db96f2',
    500: '#c766eb',
    950: '#000000',
  },
}
SCSS
$custom: #c766eb;
$custom-light: #db96f2;
$custom-dark: #000000;
JSON
{
  "hex": "#c766eb",
  "rgb": {
    "r": 199,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 283.759,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.67646,
    "c": 0.20665,
    "h": 316
  },
  "luminance": 0.27643
}

Semantic roles & 50–950 ramp

primary
#C766EB
secondary
#CCECC1
accent
#D90C44
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C766EB

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

Preview Lab → · Contrast checker → · Palette generator →

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