#CC7CEF#CC7CEF

#CC7CEF is a light, vivid purple. Relative luminance 0.335; OKLCH L 71.5% C 0.179 H 314.8°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#CC7CEF
RGBrgb(204, 124, 239)
HSLhsl(282, 78%, 71%)
HSVhsv(282, 48%, 94%)
CMYKcmyk(14.6%, 48.1%, 0%, 6.3%)
CIE-LABlab(64.55, 50.10, -45.70)
CIE-LCHlch(64.55, 67.81, 317.63°)
OKLaboklab(71.52% 0.126 -0.127)
OKLCHoklch(71.52% 0.179 314.8)
XYZxyz(47.6870, 33.4859, 85.5960)
Luminance0.3348 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7CEF #9FEF7C
analogous
#927CEF #CC7CEF #EF7CD8
triadic
#CC7CEF #EFCC7C #7CEFCC
tetradic
#CC7CEF #EF927C #9FEF7C #7CD8EF
square
#CC7CEF #EF927C #9FEF7C #7CD8EF
split-complementary
#CC7CEF #D8EF7C #7CEF92
monochromatic
#9D1AD6 #B745E8 #CC7CEF #E1B3F6 #F4E4FC

Accessibility & contrast

On white

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

On black

7.70
#CC7CEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7CEF
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7CEF#FFFFFF#000000##000000
##CC7CEF1.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6498F3
Deuteranopia (green-blind)
#7B9FEC
Tritanopia (blue-blind)
#CA8DAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7cef;
/* rgb */ color: rgb(204, 124, 239);
/* oklch */ color: oklch(71.5% 0.179 314.8);
Tailwind
colors: {
  custom: {
    50: '#dea4f4',
    500: '#cc7cef',
    950: '#000000',
  },
}
SCSS
$custom: #cc7cef;
$custom-light: #dea4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7cef",
  "rgb": {
    "r": 204,
    "g": 124,
    "b": 239
  },
  "hsl": {
    "h": 281.739,
    "s": 78.231,
    "l": 71.176
  },
  "oklch": {
    "l": 0.71515,
    "c": 0.17894,
    "h": 314.8
  },
  "luminance": 0.33485
}

Semantic roles & 50–950 ramp

primary
#CC7CEF
secondary
#DDF3D4
accent
#DA0B4A
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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