#C766FE#C766FE

#C766FE is a light, highly saturated violet. Relative luminance 0.288; OKLCH L 68.7% C 0.226 H 311.3°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#C766FE
RGBrgb(199, 102, 254)
HSLhsl(278, 99%, 70%)
HSVhsv(278, 60%, 100%)
CMYKcmyk(21.7%, 59.8%, 0%, 0.4%)
CIE-LABlab(60.61, 62.91, -60.28)
CIE-LCHlch(60.61, 87.12, 316.22°)
OKLaboklab(68.74% 0.149 -0.1696)
OKLCHoklch(68.74% 0.226 311.3)
XYZxyz(46.1907, 28.8017, 96.8727)
Luminance0.2880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C766FE #9DFE66
analogous
#7B66FE #C766FE #FE66E9
triadic
#C766FE #FEC766 #66FEC7
tetradic
#C766FE #FE7B66 #9DFE66 #66E9FE
square
#C766FE #FE7B66 #9DFE66 #66E9FE
split-complementary
#C766FE #E9FE66 #66FE7B
monochromatic
#9502E8 #B129FE #C766FE #DDA3FE #F4E0FF

Accessibility & contrast

On white

3.11
#C766FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#C766FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C766FE
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C766FE#FFFFFF#000000##000000
##C766FE1.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B8DFF
Deuteranopia (green-blind)
#5894FA
Tritanopia (blue-blind)
#C083A9
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #c766fe;
/* rgb */ color: rgb(199, 102, 254);
/* oklch */ color: oklch(68.7% 0.226 311.3);
Tailwind
colors: {
  custom: {
    50: '#dc96ff',
    500: '#c766fe',
    950: '#000000',
  },
}
SCSS
$custom: #c766fe;
$custom-light: #dc96ff;
$custom-dark: #000000;
JSON
{
  "hex": "#c766fe",
  "rgb": {
    "r": 199,
    "g": 102,
    "b": 254
  },
  "hsl": {
    "h": 278.289,
    "s": 98.701,
    "l": 69.804
  },
  "oklch": {
    "l": 0.6874,
    "c": 0.2257,
    "h": 311.3
  },
  "luminance": 0.28801
}

Semantic roles & 50–950 ramp

primary
#C766FE
secondary
#DAF5CA
accent
#E60053
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #C766FE

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

Preview Lab → · Contrast checker → · Palette generator →

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