#CC7CF7#CC7CF7

#CC7CF7 is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.9% C 0.188 H 312.6°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#CC7CF7
RGBrgb(204, 124, 247)
HSLhsl(279, 88%, 73%)
HSVhsv(279, 50%, 97%)
CMYKcmyk(17.4%, 49.8%, 0%, 3.1%)
CIE-LABlab(64.94, 51.76, -49.50)
CIE-LCHlch(64.94, 71.62, 316.28°)
OKLaboklab(71.93% 0.1269 -0.1381)
OKLCHoklch(71.93% 0.188 312.6)
XYZxyz(48.8951, 33.9692, 91.9586)
Luminance0.3397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7CF7 #A7F77C
analogous
#8E7CF7 #CC7CF7 #F77CE5
triadic
#CC7CF7 #F7CC7C #7CF7CC
tetradic
#CC7CF7 #F78E7C #A7F77C #7CE5F7
square
#CC7CF7 #F78E7C #A7F77C #7CE5F7
split-complementary
#CC7CF7 #E5F77C #7CF78E
monochromatic
#9D0EEA #B642F3 #CC7CF7 #E2B6FB #F4E2FD

Accessibility & contrast

On white

2.69
#CC7CF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#CC7CF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7CF7
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7CF7#FFFFFF#000000##000000
##CC7CF71.002.697.797.79
#FFFFFF2.691.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F99FB
Deuteranopia (green-blind)
#779FF4
Tritanopia (blue-blind)
#C890AE
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7cf7;
/* rgb */ color: rgb(204, 124, 247);
/* oklch */ color: oklch(71.9% 0.188 312.6);
Tailwind
colors: {
  custom: {
    50: '#dea4fa',
    500: '#cc7cf7',
    950: '#000000',
  },
}
SCSS
$custom: #cc7cf7;
$custom-light: #dea4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7cf7",
  "rgb": {
    "r": 204,
    "g": 124,
    "b": 247
  },
  "hsl": {
    "h": 279.024,
    "s": 88.489,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71927,
    "c": 0.18756,
    "h": 312.6
  },
  "luminance": 0.33968
}

Semantic roles & 50–950 ramp

primary
#CC7CF7
secondary
#E1F5D6
accent
#E50050
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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