#CC7CF2#CC7CF2

#CC7CF2 is a light, vivid purple. Relative luminance 0.337; OKLCH L 71.7% C 0.182 H 313.9°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#CC7CF2
RGBrgb(204, 124, 242)
HSLhsl(281, 82%, 72%)
HSVhsv(281, 49%, 95%)
CMYKcmyk(15.7%, 48.8%, 0%, 5.1%)
CIE-LABlab(64.70, 50.72, -47.13)
CIE-LCHlch(64.70, 69.23, 317.10°)
OKLaboklab(71.67% 0.1264 -0.1312)
OKLCHoklch(71.67% 0.182 313.9)
XYZxyz(48.1339, 33.6647, 87.9495)
Luminance0.3366 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7CF2 #A2F27C
analogous
#917CF2 #CC7CF2 #F27CDD
triadic
#CC7CF2 #F2CC7C #7CF2CC
tetradic
#CC7CF2 #F2917C #A2F27C #7CDDF2
square
#CC7CF2 #F2917C #A2F27C #7CDDF2
split-complementary
#CC7CF2 #DDF27C #7CF291
monochromatic
#9D16DE #B644EC #CC7CF2 #E2B4F8 #F4E3FC

Accessibility & contrast

On white

2.72
#CC7CF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#CC7CF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7CF2
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7CF2#FFFFFF#000000##000000
##CC7CF21.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6298F6
Deuteranopia (green-blind)
#799FEF
Tritanopia (blue-blind)
#C98EAC
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7cf2;
/* rgb */ color: rgb(204, 124, 242);
/* oklch */ color: oklch(71.7% 0.182 313.9);
Tailwind
colors: {
  custom: {
    50: '#dea4f7',
    500: '#cc7cf2',
    950: '#000000',
  },
}
SCSS
$custom: #cc7cf2;
$custom-light: #dea4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7cf2",
  "rgb": {
    "r": 204,
    "g": 124,
    "b": 242
  },
  "hsl": {
    "h": 280.678,
    "s": 81.944,
    "l": 71.765
  },
  "oklch": {
    "l": 0.71668,
    "c": 0.18216,
    "h": 313.9
  },
  "luminance": 0.33663
}

Semantic roles & 50–950 ramp

primary
#CC7CF2
secondary
#E0F4D6
accent
#DE074C
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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