#B142A8#B142A8
#B142A8 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.8% C 0.187 H 331.1°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #B142A8 |
|---|---|
| RGB | rgb(177, 66, 168) |
| HSL | hsl(305, 46%, 48%) |
| HSV | hsv(305, 63%, 69%) |
| CMYK | cmyk(0%, 62.7%, 5.1%, 30.6%) |
| CIE-LAB | lab(47.07, 57.43, -32.94) |
| CIE-LCH | lch(47.07, 66.21, 330.16°) |
| OKLab | oklab(56.79% 0.1635 -0.0904) |
| OKLCH | oklch(56.79% 0.187 331.1) |
| XYZ | xyz(27.1475, 16.0727, 38.7107) |
| Luminance | 0.1607 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 2.67
Medium Purple
#9E43A2
ΔE00 3.75
Purpley Pink
#C83CB9
ΔE00 4.55
Pinky Purple
#C94CBE
ΔE00 6.40
Purply
#983FB2
ΔE00 6.42
Barney
#AC1DB8
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B142A8 #42B14B
analogous
#8342B1 #B142A8 #B14270
triadic
#B142A8 #A8B142 #42A8B1
tetradic
#B142A8 #B18342 #42B14B #4270B1
square
#B142A8 #B18342 #42B14B #4270B1
split-complementary
#B142A8 #70B142 #42B183
monochromatic
#582153 #84317E #B142A8 #C769BF #D896D2
Accessibility & contrast
On white
4.98
#B142A8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#B142A8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B142A8
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B142A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B142A8 | 1.00 | 4.98 | 4.21 | 4.98 |
| #FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B66AB
Deuteranopia (green-blind)
#6175A5
Tritanopia (blue-blind)
#B84D6F
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #b142a8; /* rgb */ color: rgb(177, 66, 168); /* oklch */ color: oklch(56.8% 0.187 331.1);
Tailwind
colors: {
custom: {
50: '#cb7ec2',
500: '#b142a8',
950: '#000000',
},
}SCSS
$custom: #b142a8; $custom-light: #cb7ec2; $custom-dark: #000000;
JSON
{
"hex": "#b142a8",
"rgb": {
"r": 177,
"g": 66,
"b": 168
},
"hsl": {
"h": 304.865,
"s": 45.679,
"l": 47.647
},
"oklch": {
"l": 0.56794,
"c": 0.18681,
"h": 331.1
},
"luminance": 0.16071
}Semantic roles & 50–950 ramp
primary
#B142A8
secondary
#8BC390
accent
#D55D52
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#140A12
muted
#827C81