#B252CD#B252CD
#B252CD is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.8% C 0.197 H 318.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #B252CD |
|---|---|
| RGB | rgb(178, 82, 205) |
| HSL | hsl(287, 55%, 56%) |
| HSV | hsv(287, 60%, 80%) |
| CMYK | cmyk(13.2%, 60%, 0%, 19.6%) |
| CIE-LAB | lab(51.73, 57.31, -47.08) |
| CIE-LCH | lch(51.73, 74.16, 320.60°) |
| OKLab | oklab(60.84% 0.1473 -0.1315) |
| OKLCH | oklch(60.84% 0.197 318.3) |
| XYZ | xyz(32.3953, 19.9087, 59.8821) |
| Luminance | 0.1991 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 1.94
Amethyst
#9B5FC0
ΔE00 4.93
Lightish Purple
#A552E6
ΔE00 5.16
Pinky Purple
#C94CBE
ΔE00 5.74
Pinkish Purple
#D648D7
ΔE00 6.18
Purpley Pink
#C83CB9
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B252CD #6DCD52
analogous
#7552CD #B252CD #CD52AB
triadic
#B252CD #CDB252 #52CDB2
tetradic
#B252CD #CD7552 #6DCD52 #52ABCD
square
#B252CD #CD7552 #6DCD52 #52ABCD
split-complementary
#B252CD #ABCD52 #52CD75
monochromatic
#6C2580 #9433AF #B252CD #C781DB #DCB1E8
Accessibility & contrast
On white
4.22
#B252CD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.98
#B252CD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B252CD
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B252CD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B252CD | 1.00 | 4.22 | 4.98 | 4.98 |
| #FFFFFF | 4.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3275D1
Deuteranopia (green-blind)
#587ECA
Tritanopia (blue-blind)
#B26688
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #b252cd; /* rgb */ color: rgb(178, 82, 205); /* oklch */ color: oklch(60.8% 0.197 318.3);
Tailwind
colors: {
custom: {
50: '#cc88dd',
500: '#b252cd',
950: '#000000',
},
}SCSS
$custom: #b252cd; $custom-light: #cc88dd; $custom-dark: #000000;
JSON
{
"hex": "#b252cd",
"rgb": {
"r": 178,
"g": 82,
"b": 205
},
"hsl": {
"h": 286.829,
"s": 55.157,
"l": 56.275
},
"oklch": {
"l": 0.60839,
"c": 0.19742,
"h": 318.3
},
"luminance": 0.19907
}Semantic roles & 50–950 ramp
primary
#B252CD
secondary
#AFD7A4
accent
#DE496A
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83