#CC7EFD#CC7EFD

#CC7EFD is a light, vivid violet. Relative luminance 0.349; OKLCH L 72.5% C 0.191 H 310.8°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#CC7EFD
RGBrgb(204, 126, 253)
HSLhsl(277, 97%, 74%)
HSVhsv(277, 50%, 99%)
CMYKcmyk(19.4%, 50.2%, 0%, 0.8%)
CIE-LABlab(65.63, 52.00, -51.69)
CIE-LCHlch(65.63, 73.32, 315.17°)
OKLaboklab(72.54% 0.1249 -0.1445)
OKLCHoklch(72.54% 0.191 310.8)
XYZxyz(50.0891, 34.8519, 96.9979)
Luminance0.3485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EFD #AFFD7E
analogous
#8D7EFD #CC7EFD #FD7EEF
triadic
#CC7EFD #FDCC7E #7EFDCC
tetradic
#CC7EFD #FD8D7E #AFFD7E #7EEFFD
square
#CC7EFD #FD8D7E #AFFD7E #7EEFFD
split-complementary
#CC7EFD #EFFD7E #7EFD8D
monochromatic
#9C05FB #B442FC #CC7EFD #E4BAFE #F3E1FF

Accessibility & contrast

On white

2.63
#CC7EFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#CC7EFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EFD
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EFD#FFFFFF#000000##000000
##CC7EFD1.002.637.977.97
#FFFFFF2.631.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9CFF
Deuteranopia (green-blind)
#75A1FA
Tritanopia (blue-blind)
#C693B2
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cc7efd;
/* rgb */ color: rgb(204, 126, 253);
/* oklch */ color: oklch(72.5% 0.191 310.8);
Tailwind
colors: {
  custom: {
    50: '#dea6fe',
    500: '#cc7efd',
    950: '#000000',
  },
}
SCSS
$custom: #cc7efd;
$custom-light: #dea6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7efd",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 253
  },
  "hsl": {
    "h": 276.85,
    "s": 96.947,
    "l": 74.314
  },
  "oklch": {
    "l": 0.72538,
    "c": 0.19097,
    "h": 310.8
  },
  "luminance": 0.34851
}

Semantic roles & 50–950 ramp

primary
#CC7EFD
secondary
#E2F7D4
accent
#E60059
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CC7EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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