#CC56F2#CC56F2

#CC56F2 is a light, highly saturated purple. Relative luminance 0.259; OKLCH L 66.7% C 0.237 H 316.9°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#CC56F2
RGBrgb(204, 86, 242)
HSLhsl(285, 86%, 64%)
HSVhsv(285, 64%, 95%)
CMYKcmyk(15.7%, 64.5%, 0%, 5.1%)
CIE-LABlab(57.95, 68.80, -57.85)
CIE-LCHlch(57.95, 89.88, 319.94°)
OKLaboklab(66.73% 0.1734 -0.1622)
OKLCHoklch(66.73% 0.237 316.9)
XYZxyz(44.2543, 25.9055, 86.6563)
Luminance0.2590 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC56F2 #7CF256
analogous
#7E56F2 #CC56F2 #F256CA
triadic
#CC56F2 #F2CC56 #56F2CC
tetradic
#CC56F2 #F27E56 #7CF256 #56CAF2
square
#CC56F2 #F27E56 #7CF256 #56CAF2
split-complementary
#CC56F2 #CAF256 #56F27E
monochromatic
#940FBF #BB1DEE #CC56F2 #DD8FF6 #EEC8FB

Accessibility & contrast

On white

3.40
#CC56F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#CC56F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC56F2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC56F2#FFFFFF#000000##000000
##CC56F21.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1684F7
Deuteranopia (green-blind)
#598FEE
Tritanopia (blue-blind)
#CA739D
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #cc56f2;
/* rgb */ color: rgb(204, 86, 242);
/* oklch */ color: oklch(66.7% 0.237 316.9);
Tailwind
colors: {
  custom: {
    50: '#df8df7',
    500: '#cc56f2',
    950: '#000000',
  },
}
SCSS
$custom: #cc56f2;
$custom-light: #df8df7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc56f2",
  "rgb": {
    "r": 204,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 285.385,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.6673,
    "c": 0.23744,
    "h": 316.9
  },
  "luminance": 0.25904
}

Semantic roles & 50–950 ramp

primary
#CC56F2
secondary
#C4EDB7
accent
#E2033A
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #CC56F2

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

Preview Lab → · Contrast checker → · Palette generator →

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