#C766FC#C766FC

#C766FC is a light, highly saturated violet. Relative luminance 0.287; OKLCH L 68.6% C 0.224 H 311.8°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#C766FC
RGBrgb(199, 102, 252)
HSLhsl(279, 96%, 69%)
HSVhsv(279, 60%, 99%)
CMYKcmyk(21%, 59.5%, 0%, 1.2%)
CIE-LABlab(60.49, 62.49, -59.36)
CIE-LCHlch(60.49, 86.19, 316.47°)
OKLaboklab(68.62% 0.149 -0.1669)
OKLCHoklch(68.62% 0.224 311.8)
XYZxyz(45.8721, 28.6742, 95.1948)
Luminance0.2867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C766FC #9BFC66
analogous
#7C66FC #C766FC #FC66E6
triadic
#C766FC #FCC766 #66FCC7
tetradic
#C766FC #FC7C66 #9BFC66 #66E6FC
square
#C766FC #FC7C66 #9BFC66 #66E6FC
split-complementary
#C766FC #E6FC66 #66FC7C
monochromatic
#9404E3 #B12AFB #C766FC #DDA2FD #F3DEFE

Accessibility & contrast

On white

3.12
#C766FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#C766FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C766FC
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C766FC#FFFFFF#000000##000000
##C766FC1.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E8DFF
Deuteranopia (green-blind)
#5A94F8
Tritanopia (blue-blind)
#C182A8
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #c766fc;
/* rgb */ color: rgb(199, 102, 252);
/* oklch */ color: oklch(68.6% 0.224 311.8);
Tailwind
colors: {
  custom: {
    50: '#db96fe',
    500: '#c766fc',
    950: '#000000',
  },
}
SCSS
$custom: #c766fc;
$custom-light: #db96fe;
$custom-dark: #000000;
JSON
{
  "hex": "#c766fc",
  "rgb": {
    "r": 199,
    "g": 102,
    "b": 252
  },
  "hsl": {
    "h": 278.8,
    "s": 96.154,
    "l": 69.412
  },
  "oklch": {
    "l": 0.68621,
    "c": 0.22369,
    "h": 311.8
  },
  "luminance": 0.28673
}

Semantic roles & 50–950 ramp

primary
#C766FC
secondary
#D9F5C9
accent
#E60051
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #C766FC

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

Preview Lab → · Contrast checker → · Palette generator →

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