#B042B4#B042B4
#B042B4 is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.3% C 0.196 H 326.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #B042B4 |
|---|---|
| RGB | rgb(176, 66, 180) |
| HSL | hsl(298, 46%, 48%) |
| HSV | hsv(298, 63%, 71%) |
| CMYK | cmyk(2.2%, 63.3%, 0%, 29.4%) |
| CIE-LAB | lab(47.53, 59.23, -39.30) |
| CIE-LCH | lch(47.53, 71.08, 326.44°) |
| OKLab | oklab(57.29% 0.1633 -0.1088) |
| OKLCH | oklch(57.29% 0.196 326.3) |
| XYZ | xyz(28.0904, 16.4236, 44.8617) |
| Luminance | 0.1642 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.80
Medium Purple
#9E43A2
ΔE00 4.11
Purpley Pink
#C83CB9
ΔE00 4.44
Purply
#983FB2
ΔE00 5.18
Barney
#AC1DB8
ΔE00 5.54
Pinky Purple
#C94CBE
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B042B4 #46B442
analogous
#7742B4 #B042B4 #B4427F
triadic
#B042B4 #B4B042 #42B4B0
tetradic
#B042B4 #B47742 #46B442 #427FB4
square
#B042B4 #B47742 #46B442 #427FB4
split-complementary
#B042B4 #7FB442 #42B477
monochromatic
#58215A #843287 #B042B4 #C56BC9 #D797D9
Accessibility & contrast
On white
4.90
#B042B4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#B042B4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B042B4
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B042B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B042B4 | 1.00 | 4.90 | 4.28 | 4.90 |
| #FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3068B7
Deuteranopia (green-blind)
#5A76B1
Tritanopia (blue-blind)
#B55275
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #b042b4; /* rgb */ color: rgb(176, 66, 180); /* oklch */ color: oklch(57.3% 0.196 326.3);
Tailwind
colors: {
custom: {
50: '#cb7ecb',
500: '#b042b4',
950: '#000000',
},
}SCSS
$custom: #b042b4; $custom-light: #cb7ecb; $custom-dark: #000000;
JSON
{
"hex": "#b042b4",
"rgb": {
"r": 176,
"g": 66,
"b": 180
},
"hsl": {
"h": 297.895,
"s": 46.341,
"l": 48.235
},
"oklch": {
"l": 0.57292,
"c": 0.19621,
"h": 326.3
},
"luminance": 0.16422
}Semantic roles & 50–950 ramp
primary
#B042B4
secondary
#8FC58D
accent
#D65256
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82