#B042B6#B042B6
#B042B6 is a mid, vivid purple. Relative luminance 0.165; OKLCH L 57.4% C 0.198 H 325.6°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #B042B6 |
|---|---|
| RGB | rgb(176, 66, 182) |
| HSL | hsl(297, 47%, 49%) |
| HSV | hsv(297, 64%, 71%) |
| CMYK | cmyk(3.3%, 63.7%, 0%, 28.6%) |
| CIE-LAB | lab(47.63, 59.59, -40.30) |
| CIE-LCH | lch(47.63, 71.94, 325.93°) |
| OKLab | oklab(57.4% 0.1634 -0.1117) |
| OKLCH | oklch(57.4% 0.198 325.6) |
| XYZ | xyz(28.2956, 16.5057, 45.9424) |
| Luminance | 0.1650 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 4.10
Medium Purple
#9E43A2
ΔE00 4.31
Purpley Pink
#C83CB9
ΔE00 4.49
Purply
#983FB2
ΔE00 5.10
Barney
#AC1DB8
ΔE00 5.48
Pinky Purple
#C94CBE
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B042B6 #48B642
analogous
#7642B6 #B042B6 #B64282
triadic
#B042B6 #B6B042 #42B6B0
tetradic
#B042B6 #B67642 #48B642 #4282B6
square
#B042B6 #B67642 #48B642 #4282B6
split-complementary
#B042B6 #82B642 #42B676
monochromatic
#59215C #853289 #B042B6 #C56CCA #D699DA
Accessibility & contrast
On white
4.88
#B042B6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.30
#B042B6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B042B6
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B042B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B042B6 | 1.00 | 4.88 | 4.30 | 4.88 |
| #FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E68B9
Deuteranopia (green-blind)
#5976B3
Tritanopia (blue-blind)
#B45376
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #b042b6; /* rgb */ color: rgb(176, 66, 182); /* oklch */ color: oklch(57.4% 0.198 325.6);
Tailwind
colors: {
custom: {
50: '#cb7ecc',
500: '#b042b6',
950: '#000000',
},
}SCSS
$custom: #b042b6; $custom-light: #cb7ecc; $custom-dark: #000000;
JSON
{
"hex": "#b042b6",
"rgb": {
"r": 176,
"g": 66,
"b": 182
},
"hsl": {
"h": 296.897,
"s": 46.774,
"l": 48.627
},
"oklch": {
"l": 0.57403,
"c": 0.19791,
"h": 325.6
},
"luminance": 0.16504
}Semantic roles & 50–950 ramp
primary
#B042B6
secondary
#91C68E
accent
#D65158
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82