#CC51F2#CC51F2

#CC51F2 is a light, highly saturated purple. Relative luminance 0.251; OKLCH L 66.2% C 0.244 H 317.2°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#CC51F2
RGBrgb(204, 81, 242)
HSLhsl(286, 86%, 63%)
HSVhsv(286, 67%, 95%)
CMYKcmyk(15.7%, 66.5%, 0%, 5.1%)
CIE-LABlab(57.21, 70.86, -59.03)
CIE-LCHlch(57.21, 92.23, 320.20°)
OKLaboklab(66.2% 0.1788 -0.1656)
OKLCHoklch(66.2% 0.244 317.2)
XYZxyz(43.8689, 25.1348, 86.5279)
Luminance0.2513 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC51F2 #77F251
analogous
#7C51F2 #CC51F2 #F251C7
triadic
#CC51F2 #F2CC51 #51F2CC
tetradic
#CC51F2 #F27C51 #77F251 #51C7F2
square
#CC51F2 #F27C51 #77F251 #51C7F2
split-complementary
#CC51F2 #C7F251 #51F27C
monochromatic
#920EBB #BB18EE #CC51F2 #DD8AF6 #EDC3FB

Accessibility & contrast

On white

3.48
#CC51F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#CC51F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC51F2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC51F2#FFFFFF#000000##000000
##CC51F21.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F7
Deuteranopia (green-blind)
#558DEE
Tritanopia (blue-blind)
#CA6F9B
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #cc51f2;
/* rgb */ color: rgb(204, 81, 242);
/* oklch */ color: oklch(66.2% 0.244 317.2);
Tailwind
colors: {
  custom: {
    50: '#df8bf7',
    500: '#cc51f2',
    950: '#000000',
  },
}
SCSS
$custom: #cc51f2;
$custom-light: #df8bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc51f2",
  "rgb": {
    "r": 204,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 285.839,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.66198,
    "c": 0.24371,
    "h": 317.2
  },
  "luminance": 0.25133
}

Semantic roles & 50–950 ramp

primary
#CC51F2
secondary
#C0ECB3
accent
#E30338
background
#FEF8FF
surface
#FCF0FF
border
#D5CBD7
text
#160D17
muted
#847D85

Preview Lab

Preview with #CC51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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