#CC7EF2#CC7EF2

#CC7EF2 is a light, vivid purple. Relative luminance 0.342; OKLCH L 72.0% C 0.179 H 313.7°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#CC7EF2
RGBrgb(204, 126, 242)
HSLhsl(280, 82%, 72%)
HSVhsv(280, 48%, 95%)
CMYKcmyk(15.7%, 47.9%, 0%, 5.1%)
CIE-LABlab(65.10, 49.68, -46.50)
CIE-LCHlch(65.10, 68.04, 316.90°)
OKLaboklab(71.97% 0.1237 -0.1294)
OKLCHoklch(71.97% 0.179 313.7)
XYZxyz(48.3871, 34.1711, 88.0339)
Luminance0.3417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EF2 #A4F27E
analogous
#927EF2 #CC7EF2 #F27EDE
triadic
#CC7EF2 #F2CC7E #7EF2CC
tetradic
#CC7EF2 #F2927E #A4F27E #7EDEF2
square
#CC7EF2 #F2927E #A4F27E #7EDEF2
split-complementary
#CC7EF2 #DEF27E #7EF292
monochromatic
#9D16DF #B646EC #CC7EF2 #E2B6F8 #F4E3FC

Accessibility & contrast

On white

2.68
#CC7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#CC7EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EF2
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EF2#FFFFFF#000000##000000
##CC7EF21.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#659AF6
Deuteranopia (green-blind)
#7BA0EF
Tritanopia (blue-blind)
#C990AD
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7ef2;
/* rgb */ color: rgb(204, 126, 242);
/* oklch */ color: oklch(72.0% 0.179 313.7);
Tailwind
colors: {
  custom: {
    50: '#dea5f7',
    500: '#cc7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #cc7ef2;
$custom-light: #dea5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7ef2",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 280.345,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.71967,
    "c": 0.17897,
    "h": 313.7
  },
  "luminance": 0.3417
}

Semantic roles & 50–950 ramp

primary
#CC7EF2
secondary
#E0F4D7
accent
#DE074E
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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