#CC7FF2#CC7FF2

#CC7FF2 is a light, vivid purple. Relative luminance 0.344; OKLCH L 72.1% C 0.177 H 313.6°. Best body text is #000000 at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#CC7FF2
RGBrgb(204, 127, 242)
HSLhsl(280, 82%, 72%)
HSVhsv(280, 48%, 95%)
CMYKcmyk(15.7%, 47.5%, 0%, 5.1%)
CIE-LABlab(65.30, 49.16, -46.18)
CIE-LCHlch(65.30, 67.44, 316.79°)
OKLaboklab(72.12% 0.1223 -0.1284)
OKLCHoklch(72.12% 0.177 313.6)
XYZxyz(48.5156, 34.4281, 88.0768)
Luminance0.3443 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7FF2 #A5F27F
analogous
#937FF2 #CC7FF2 #F27FDE
triadic
#CC7FF2 #F2CC7F #7FF2CC
tetradic
#CC7FF2 #F2937F #A5F27F #7FDEF2
square
#CC7FF2 #F2937F #A5F27F #7FDEF2
split-complementary
#CC7FF2 #DEF27F #7FF293
monochromatic
#9D17E0 #B647EC #CC7FF2 #E2B7F8 #F4E3FC

Accessibility & contrast

On white

2.66
#CC7FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.89
#CC7FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7FF2
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7FF2#FFFFFF#000000##000000
##CC7FF21.002.667.897.89
#FFFFFF2.661.0021.0021.00
#0000007.8921.001.001.00
##0000007.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#669AF6
Deuteranopia (green-blind)
#7CA0EF
Tritanopia (blue-blind)
#C991AD
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7ff2;
/* rgb */ color: rgb(204, 127, 242);
/* oklch */ color: oklch(72.1% 0.177 313.6);
Tailwind
colors: {
  custom: {
    50: '#dea6f7',
    500: '#cc7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #cc7ff2;
$custom-light: #dea6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7ff2",
  "rgb": {
    "r": 204,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 280.174,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.72118,
    "c": 0.17737,
    "h": 313.6
  },
  "luminance": 0.34427
}

Semantic roles & 50–950 ramp

primary
#CC7FF2
secondary
#E1F4D7
accent
#DE084E
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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