#CC7AEF#CC7AEF

#CC7AEF is a light, vivid purple. Relative luminance 0.330; OKLCH L 71.2% C 0.182 H 315.0°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#CC7AEF
RGBrgb(204, 122, 239)
HSLhsl(282, 79%, 71%)
HSVhsv(282, 49%, 94%)
CMYKcmyk(14.6%, 49%, 0%, 6.3%)
CIE-LABlab(64.15, 51.13, -46.33)
CIE-LCHlch(64.15, 69.00, 317.82°)
OKLaboklab(71.22% 0.1287 -0.1289)
OKLCHoklch(71.22% 0.182 315)
XYZxyz(47.4389, 32.9897, 85.5133)
Luminance0.3299 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AEF #9DEF7A
analogous
#917AEF #CC7AEF #EF7AD7
triadic
#CC7AEF #EFCC7A #7AEFCC
tetradic
#CC7AEF #EF917A #9DEF7A #7AD7EF
square
#CC7AEF #EF917A #9DEF7A #7AD7EF
split-complementary
#CC7AEF #D7EF7A #7AEF91
monochromatic
#9D1AD5 #B743E8 #CC7AEF #E1B1F6 #F5E4FC

Accessibility & contrast

On white

2.76
#CC7AEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#CC7AEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AEF
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AEF#FFFFFF#000000##000000
##CC7AEF1.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6197F3
Deuteranopia (green-blind)
#799EEC
Tritanopia (blue-blind)
#CA8CAA
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #cc7aef;
/* rgb */ color: rgb(204, 122, 239);
/* oklch */ color: oklch(71.2% 0.182 315.0);
Tailwind
colors: {
  custom: {
    50: '#dea3f5',
    500: '#cc7aef',
    950: '#000000',
  },
}
SCSS
$custom: #cc7aef;
$custom-light: #dea3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7aef",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 239
  },
  "hsl": {
    "h": 282.051,
    "s": 78.523,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71218,
    "c": 0.18214,
    "h": 315
  },
  "luminance": 0.32988
}

Semantic roles & 50–950 ramp

primary
#CC7AEF
secondary
#DCF2D3
accent
#DB0B49
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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