#B142AB#B142AB
#B142AB is a mid, vivid purple. Relative luminance 0.162; OKLCH L 56.9% C 0.189 H 329.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #B142AB |
|---|---|
| RGB | rgb(177, 66, 171) |
| HSL | hsl(303, 46%, 48%) |
| HSV | hsv(303, 63%, 69%) |
| CMYK | cmyk(0%, 62.7%, 3.4%, 30.6%) |
| CIE-LAB | lab(47.22, 57.93, -34.48) |
| CIE-LCH | lch(47.22, 67.42, 329.24°) |
| OKLab | oklab(56.95% 0.1638 -0.0948) |
| OKLCH | oklch(56.95% 0.189 329.9) |
| XYZ | xyz(27.4302, 16.1857, 40.1996) |
| Luminance | 0.1618 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 2.85
Medium Purple
#9E43A2
ΔE00 3.75
Purpley Pink
#C83CB9
ΔE00 4.36
Purply
#983FB2
ΔE00 6.09
Pinky Purple
#C94CBE
ΔE00 6.22
Barney
#AC1DB8
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B142AB #42B148
analogous
#7F42B1 #B142AB #B14274
triadic
#B142AB #ABB142 #42ABB1
tetradic
#B142AB #B17F42 #42B148 #4274B1
square
#B142AB #B17F42 #42B148 #4274B1
split-complementary
#B142AB #74B142 #42B17F
monochromatic
#582155 #843180 #B142AB #C769C2 #D896D4
Accessibility & contrast
On white
4.96
#B142AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#B142AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B142AB
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B142AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B142AB | 1.00 | 4.96 | 4.24 | 4.96 |
| #FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#5F75A8
Tritanopia (blue-blind)
#B74E70
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #b142ab; /* rgb */ color: rgb(177, 66, 171); /* oklch */ color: oklch(56.9% 0.189 329.9);
Tailwind
colors: {
custom: {
50: '#cb7ec4',
500: '#b142ab',
950: '#000000',
},
}SCSS
$custom: #b142ab; $custom-light: #cb7ec4; $custom-dark: #000000;
JSON
{
"hex": "#b142ab",
"rgb": {
"r": 177,
"g": 66,
"b": 171
},
"hsl": {
"h": 303.243,
"s": 45.679,
"l": 47.647
},
"oklch": {
"l": 0.56949,
"c": 0.18924,
"h": 329.9
},
"luminance": 0.16184
}Semantic roles & 50–950 ramp
primary
#B142AB
secondary
#8BC38E
accent
#D55A52
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82