#B142B5#B142B5
#B142B5 is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.5% C 0.198 H 326.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #B142B5 |
|---|---|
| RGB | rgb(177, 66, 181) |
| HSL | hsl(298, 47%, 48%) |
| HSV | hsv(298, 64%, 71%) |
| CMYK | cmyk(2.2%, 63.5%, 0%, 29%) |
| CIE-LAB | lab(47.73, 59.66, -39.55) |
| CIE-LCH | lch(47.73, 71.58, 326.46°) |
| OKLab | oklab(57.49% 0.1645 -0.1095) |
| OKLCH | oklch(57.49% 0.198 326.4) |
| XYZ | xyz(28.4196, 16.5815, 45.4108) |
| Luminance | 0.1658 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 4.02
Purpley Pink
#C83CB9
ΔE00 4.26
Medium Purple
#9E43A2
ΔE00 4.34
Purply
#983FB2
ΔE00 5.34
Barney
#AC1DB8
ΔE00 5.63
Pinky Purple
#C94CBE
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B142B5 #46B542
analogous
#7742B5 #B142B5 #B5427F
triadic
#B142B5 #B5B142 #42B5B1
tetradic
#B142B5 #B57742 #46B542 #427FB5
square
#B142B5 #B57742 #46B542 #427FB5
split-complementary
#B142B5 #7FB542 #42B577
monochromatic
#59215B #853288 #B142B5 #C66BC9 #D798D9
Accessibility & contrast
On white
4.87
#B142B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.32
#B142B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B142B5
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B142B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B142B5 | 1.00 | 4.87 | 4.32 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3068B8
Deuteranopia (green-blind)
#5A76B2
Tritanopia (blue-blind)
#B65276
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #b142b5; /* rgb */ color: rgb(177, 66, 181); /* oklch */ color: oklch(57.5% 0.198 326.4);
Tailwind
colors: {
custom: {
50: '#cb7ecb',
500: '#b142b5',
950: '#000000',
},
}SCSS
$custom: #b142b5; $custom-light: #cb7ecb; $custom-dark: #000000;
JSON
{
"hex": "#b142b5",
"rgb": {
"r": 177,
"g": 66,
"b": 181
},
"hsl": {
"h": 297.913,
"s": 46.559,
"l": 48.431
},
"oklch": {
"l": 0.57486,
"c": 0.19758,
"h": 326.4
},
"luminance": 0.1658
}Semantic roles & 50–950 ramp
primary
#B142B5
secondary
#8FC58E
accent
#D65256
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B13
muted
#827C82