#CC7AF7#CC7AF7

#CC7AF7 is a light, vivid violet. Relative luminance 0.335; OKLCH L 71.6% C 0.191 H 312.8°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#CC7AF7
RGBrgb(204, 122, 247)
HSLhsl(279, 89%, 72%)
HSVhsv(279, 51%, 97%)
CMYKcmyk(17.4%, 50.6%, 0%, 3.1%)
CIE-LABlab(64.54, 52.79, -50.13)
CIE-LCHlch(64.54, 72.80, 316.48°)
OKLaboklab(71.63% 0.1296 -0.1399)
OKLCHoklch(71.63% 0.191 312.8)
XYZxyz(48.6470, 33.4730, 91.8759)
Luminance0.3347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AF7 #A5F77A
analogous
#8E7AF7 #CC7AF7 #F77AE3
triadic
#CC7AF7 #F7CC7A #7AF7CC
tetradic
#CC7AF7 #F78E7A #A5F77A #7AE3F7
square
#CC7AF7 #F78E7A #A5F77A #7AE3F7
split-complementary
#CC7AF7 #E3F77A #7AF78E
monochromatic
#9D0EE9 #B640F4 #CC7AF7 #E2B4FA #F4E2FD

Accessibility & contrast

On white

2.73
#CC7AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#CC7AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AF7
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AF7#FFFFFF#000000##000000
##CC7AF71.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C98FB
Deuteranopia (green-blind)
#759EF4
Tritanopia (blue-blind)
#C88EAD
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cc7af7;
/* rgb */ color: rgb(204, 122, 247);
/* oklch */ color: oklch(71.6% 0.191 312.8);
Tailwind
colors: {
  custom: {
    50: '#dea3fa',
    500: '#cc7af7',
    950: '#000000',
  },
}
SCSS
$custom: #cc7af7;
$custom-light: #dea3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7af7",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 247
  },
  "hsl": {
    "h": 279.36,
    "s": 88.652,
    "l": 72.353
  },
  "oklch": {
    "l": 0.71634,
    "c": 0.19068,
    "h": 312.8
  },
  "luminance": 0.33472
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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