#B342B1#B342B1
#B342B1 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.5% C 0.195 H 328.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #B342B1 |
|---|---|
| RGB | rgb(179, 66, 177) |
| HSL | hsl(301, 46%, 48%) |
| HSV | hsv(301, 63%, 70%) |
| CMYK | cmyk(0%, 63.1%, 1.1%, 29.8%) |
| CIE-LAB | lab(47.82, 59.46, -37.04) |
| CIE-LCH | lch(47.82, 70.05, 328.08°) |
| OKLab | oklab(57.55% 0.1665 -0.1022) |
| OKLCH | oklch(57.55% 0.195 328.5) |
| XYZ | xyz(28.4741, 16.6564, 43.3017) |
| Luminance | 0.1665 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.70
Purpley Pink
#C83CB9
ΔE00 3.81
Medium Purple
#9E43A2
ΔE00 4.34
Pinky Purple
#C94CBE
ΔE00 5.62
Purply
#983FB2
ΔE00 5.99
Barney
#AC1DB8
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B342B1 #42B344
analogous
#7C42B3 #B342B1 #B34278
triadic
#B342B1 #B1B342 #42B1B3
tetradic
#B342B1 #B37C42 #42B344 #4278B3
square
#B342B1 #B37C42 #42B344 #4278B3
split-complementary
#B342B1 #78B342 #42B37C
monochromatic
#5A2159 #863285 #B342B1 #C86AC6 #D997D7
Accessibility & contrast
On white
4.85
#B342B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.33
#B342B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B342B1
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B342B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B342B1 | 1.00 | 4.85 | 4.33 | 4.85 |
| #FFFFFF | 4.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3568B4
Deuteranopia (green-blind)
#5E77AE
Tritanopia (blue-blind)
#B95074
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #b342b1; /* rgb */ color: rgb(179, 66, 177); /* oklch */ color: oklch(57.5% 0.195 328.5);
Tailwind
colors: {
custom: {
50: '#cd7ec9',
500: '#b342b1',
950: '#000000',
},
}SCSS
$custom: #b342b1; $custom-light: #cd7ec9; $custom-dark: #000000;
JSON
{
"hex": "#b342b1",
"rgb": {
"r": 179,
"g": 66,
"b": 177
},
"hsl": {
"h": 301.062,
"s": 46.122,
"l": 48.039
},
"oklch": {
"l": 0.57549,
"c": 0.19532,
"h": 328.5
},
"luminance": 0.16654
}Semantic roles & 50–950 ramp
primary
#B342B1
secondary
#8CC48D
accent
#D65452
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82