#B342AB#B342AB
#B342AB is a mid, vivid purple. Relative luminance 0.164; OKLCH L 57.2% C 0.190 H 330.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #B342AB |
|---|---|
| RGB | rgb(179, 66, 171) |
| HSL | hsl(304, 46%, 48%) |
| HSV | hsv(304, 63%, 70%) |
| CMYK | cmyk(0%, 63.1%, 4.5%, 29.8%) |
| CIE-LAB | lab(47.52, 58.44, -33.98) |
| CIE-LCH | lch(47.52, 67.60, 329.83°) |
| OKLab | oklab(57.23% 0.166 -0.0933) |
| OKLCH | oklch(57.23% 0.19 330.6) |
| XYZ | xyz(27.8892, 16.4224, 40.2211) |
| Luminance | 0.1642 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.17
Purpley Pink
#C83CB9
ΔE00 4.02
Medium Purple
#9E43A2
ΔE00 4.14
Pinky Purple
#C94CBE
ΔE00 5.88
Purply
#983FB2
ΔE00 6.51
Barney
#AC1DB8
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B342AB #42B34A
analogous
#8242B3 #B342AB #B34272
triadic
#B342AB #ABB342 #42ABB3
tetradic
#B342AB #B38242 #42B34A #4272B3
square
#B342AB #B38242 #42B34A #4272B3
split-complementary
#B342AB #72B342 #42B382
monochromatic
#5A2156 #863280 #B342AB #C86AC1 #D997D4
Accessibility & contrast
On white
4.90
#B342AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#B342AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B342AB
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B342AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B342AB | 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)
#3A67AE
Deuteranopia (green-blind)
#6176A8
Tritanopia (blue-blind)
#BA4E70
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #b342ab; /* rgb */ color: rgb(179, 66, 171); /* oklch */ color: oklch(57.2% 0.190 330.6);
Tailwind
colors: {
custom: {
50: '#cd7ec4',
500: '#b342ab',
950: '#000000',
},
}SCSS
$custom: #b342ab; $custom-light: #cd7ec4; $custom-dark: #000000;
JSON
{
"hex": "#b342ab",
"rgb": {
"r": 179,
"g": 66,
"b": 171
},
"hsl": {
"h": 304.248,
"s": 46.122,
"l": 48.039
},
"oklch": {
"l": 0.57233,
"c": 0.19042,
"h": 330.6
},
"luminance": 0.1642
}Semantic roles & 50–950 ramp
primary
#B342AB
secondary
#8CC490
accent
#D65B52
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82