#B342CE#B342CE
#B342CE is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.2% C 0.220 H 319.3°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #B342CE |
|---|---|
| RGB | rgb(179, 66, 206) |
| HSL | hsl(288, 59%, 53%) |
| HSV | hsv(288, 68%, 81%) |
| CMYK | cmyk(13.1%, 68%, 0%, 19.2%) |
| CIE-LAB | lab(49.42, 64.68, -51.33) |
| CIE-LCH | lch(49.42, 82.57, 321.56°) |
| OKLab | oklab(59.22% 0.1668 -0.1437) |
| OKLCH | oklch(59.22% 0.22 319.3) |
| XYZ | xyz(31.6778, 17.9378, 60.1743) |
| Luminance | 0.1794 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 4.45
Lightish Purple
#A552E6
ΔE00 5.59
Purple Pink
#D725DE
ΔE00 5.79
Hot Purple
#CB00F5
ΔE00 5.98
Purpley Pink
#C83CB9
ΔE00 5.99
Purply
#983FB2
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B342CE #5DCE42
analogous
#6D42CE #B342CE #CE42A3
triadic
#B342CE #CEB342 #42CEB3
tetradic
#B342CE #CE6D42 #5DCE42 #42A3CE
square
#B342CE #CE6D42 #5DCE42 #42A3CE
split-complementary
#B342CE #A3CE42 #42CE6D
monochromatic
#661F77 #8F2BA7 #B342CE #C773DB #DAA3E7
Accessibility & contrast
On white
4.58
#B342CE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.59
#B342CE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B342CE
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B342CE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B342CE | 1.00 | 4.58 | 4.59 | 4.59 |
| #FFFFFF | 4.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ED2
Deuteranopia (green-blind)
#4C79CB
Tritanopia (blue-blind)
#B35C83
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #b342ce; /* rgb */ color: rgb(179, 66, 206); /* oklch */ color: oklch(59.2% 0.220 319.3);
Tailwind
colors: {
custom: {
50: '#cd7fde',
500: '#b342ce',
950: '#000000',
},
}SCSS
$custom: #b342ce; $custom-light: #cd7fde; $custom-dark: #000000;
JSON
{
"hex": "#b342ce",
"rgb": {
"r": 179,
"g": 66,
"b": 206
},
"hsl": {
"h": 288.429,
"s": 58.824,
"l": 53.333
},
"oklch": {
"l": 0.59216,
"c": 0.22023,
"h": 319.3
},
"luminance": 0.17936
}Semantic roles & 50–950 ramp
primary
#B342CE
secondary
#A3D498
accent
#E24664
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83