#CC54F2#CC54F2

#CC54F2 is a light, highly saturated purple. Relative luminance 0.256; OKLCH L 66.5% C 0.240 H 317.0°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#CC54F2
RGBrgb(204, 84, 242)
HSLhsl(286, 86%, 64%)
HSVhsv(286, 65%, 95%)
CMYKcmyk(15.7%, 65.3%, 0%, 5.1%)
CIE-LABlab(57.65, 69.63, -58.33)
CIE-LCHlch(57.65, 90.83, 320.05°)
OKLaboklab(66.51% 0.1756 -0.1636)
OKLCHoklch(66.51% 0.24 317)
XYZxyz(44.0968, 25.5906, 86.6038)
Luminance0.2559 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC54F2 #7AF254
analogous
#7D54F2 #CC54F2 #F254C9
triadic
#CC54F2 #F2CC54 #54F2CC
tetradic
#CC54F2 #F27D54 #7AF254 #54C9F2
square
#CC54F2 #F27D54 #7AF254 #54C9F2
split-complementary
#CC54F2 #C9F254 #54F27D
monochromatic
#930EBD #BB1BEE #CC54F2 #DD8DF6 #EEC6FB

Accessibility & contrast

On white

3.43
#CC54F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#CC54F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC54F2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC54F2#FFFFFF#000000##000000
##CC54F21.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B83F7
Deuteranopia (green-blind)
#578EEE
Tritanopia (blue-blind)
#CA719C
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #cc54f2;
/* rgb */ color: rgb(204, 84, 242);
/* oklch */ color: oklch(66.5% 0.240 317.0);
Tailwind
colors: {
  custom: {
    50: '#df8cf7',
    500: '#cc54f2',
    950: '#000000',
  },
}
SCSS
$custom: #cc54f2;
$custom-light: #df8cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc54f2",
  "rgb": {
    "r": 204,
    "g": 84,
    "b": 242
  },
  "hsl": {
    "h": 285.57,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.66514,
    "c": 0.23999,
    "h": 317
  },
  "luminance": 0.25589
}

Semantic roles & 50–950 ramp

primary
#CC54F2
secondary
#C3EDB5
accent
#E20339
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #CC54F2

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

Preview Lab → · Contrast checker → · Palette generator →

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