#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 |
|---|---|
| RGB | rgb(204, 81, 242) |
| HSL | hsl(286, 86%, 63%) |
| HSV | hsv(286, 67%, 95%) |
| CMYK | cmyk(15.7%, 66.5%, 0%, 5.1%) |
| CIE-LAB | lab(57.21, 70.86, -59.03) |
| CIE-LCH | lch(57.21, 92.23, 320.20°) |
| OKLab | oklab(66.2% 0.1788 -0.1656) |
| OKLCH | oklch(66.2% 0.244 317.2) |
| XYZ | xyz(43.8689, 25.1348, 86.5279) |
| Luminance | 0.2513 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Heliotrope
#D94FF5
ΔE00 2.14
Bright Lilac
#C95EFB
ΔE00 2.64
Bright Lavender
#C760FF
ΔE00 3.34
Mediumorchid
#BA55D3
ΔE00 4.88
Pinkish Purple
#D648D7
ΔE00 4.91
Purple Pink
#D725DE
ΔE00 5.94
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 |
|---|---|---|---|---|
| ##CC51F2 | 1.00 | 3.48 | 6.03 | 6.03 |
| #FFFFFF | 3.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.03 | 21.00 | 1.00 | 1.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