#B252CC#B252CC
#B252CC is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.8% C 0.196 H 318.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #B252CC |
|---|---|
| RGB | rgb(178, 82, 204) |
| HSL | hsl(287, 54%, 56%) |
| HSV | hsv(287, 60%, 80%) |
| CMYK | cmyk(12.7%, 59.8%, 0%, 20%) |
| CIE-LAB | lab(51.68, 57.11, -46.59) |
| CIE-LCH | lch(51.68, 73.70, 320.79°) |
| OKLab | oklab(60.78% 0.1473 -0.13) |
| OKLCH | oklch(60.78% 0.196 318.6) |
| XYZ | xyz(32.2750, 19.8605, 59.2484) |
| Luminance | 0.1986 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 2.00
Amethyst
#9B5FC0
ΔE00 4.90
Lightish Purple
#A552E6
ΔE00 5.32
Pinky Purple
#C94CBE
ΔE00 5.63
Pinkish Purple
#D648D7
ΔE00 6.17
Purpley Pink
#C83CB9
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B252CC #6CCC52
analogous
#7552CC #B252CC #CC52A9
triadic
#B252CC #CCB252 #52CCB2
tetradic
#B252CC #CC7552 #6CCC52 #52A9CC
square
#B252CC #CC7552 #6CCC52 #52A9CC
split-complementary
#B252CC #A9CC52 #52CC75
monochromatic
#6B257E #9433AE #B252CC #C781DA #DCB1E8
Accessibility & contrast
On white
4.22
#B252CC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.97
#B252CC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B252CC
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B252CC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B252CC | 1.00 | 4.22 | 4.97 | 4.97 |
| #FFFFFF | 4.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3375D0
Deuteranopia (green-blind)
#587EC9
Tritanopia (blue-blind)
#B26687
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #b252cc; /* rgb */ color: rgb(178, 82, 204); /* oklch */ color: oklch(60.8% 0.196 318.6);
Tailwind
colors: {
custom: {
50: '#cc88dc',
500: '#b252cc',
950: '#000000',
},
}SCSS
$custom: #b252cc; $custom-light: #cc88dc; $custom-dark: #000000;
JSON
{
"hex": "#b252cc",
"rgb": {
"r": 178,
"g": 82,
"b": 204
},
"hsl": {
"h": 287.213,
"s": 54.464,
"l": 56.078
},
"oklch": {
"l": 0.60782,
"c": 0.19646,
"h": 318.6
},
"luminance": 0.19859
}Semantic roles & 50–950 ramp
primary
#B252CC
secondary
#AED6A4
accent
#DE4A69
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83