#BA518E#BA518E
#BA518E is a mid, vivid pink. Relative luminance 0.183; OKLCH L 58.7% C 0.152 H 346.9°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).
Color values
| HEX | #BA518E |
|---|---|
| RGB | rgb(186, 81, 142) |
| HSL | hsl(325, 43%, 52%) |
| HSV | hsv(325, 56%, 73%) |
| CMYK | cmyk(0%, 56.5%, 23.7%, 27.1%) |
| CIE-LAB | lab(49.83, 49.23, -13.12) |
| CIE-LCH | lch(49.83, 50.95, 345.07°) |
| OKLab | oklab(58.74% 0.148 -0.0346) |
| OKLCH | oklch(58.74% 0.152 346.9) |
| XYZ | xyz(28.0755, 18.2795, 27.6356) |
| Luminance | 0.1828 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Light Plum
#9D5783
ΔE00 5.98
Purplish Pink
#CE5DAE
ΔE00 7.23
Purpleish
#98568D
ΔE00 7.35
Mediumvioletred
#C71585
ΔE00 7.69
Purplish
#94568C
ΔE00 8.22
Darkish Pink
#DA467D
ΔE00 8.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA518E #51BA7D
analogous
#B251BA #BA518E #BA5159
triadic
#BA518E #8EBA51 #518EBA
tetradic
#BA518E #BAB251 #51BA7D #5159BA
square
#BA518E #BAB251 #51BA7D #5159BA
split-complementary
#BA518E #59BA51 #51BAB2
monochromatic
#68294D #933A6E #BA518E #CB7DAA #DDA9C7
Accessibility & contrast
On white
4.51
#BA518E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.66
#BA518E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #BA518E
4.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA518E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA518E | 1.00 | 4.51 | 4.66 | 4.66 |
| #FFFFFF | 4.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5C6B90
Deuteranopia (green-blind)
#797D8B
Tritanopia (blue-blind)
#C64F69
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #ba518e; /* rgb */ color: rgb(186, 81, 142); /* oklch */ color: oklch(58.7% 0.152 346.9);
Tailwind
colors: {
custom: {
50: '#d286af',
500: '#ba518e',
950: '#000000',
},
}SCSS
$custom: #ba518e; $custom-light: #d286af; $custom-dark: #000000;
JSON
{
"hex": "#ba518e",
"rgb": {
"r": 186,
"g": 81,
"b": 142
},
"hsl": {
"h": 325.143,
"s": 43.21,
"l": 52.353
},
"oklch": {
"l": 0.58741,
"c": 0.15202,
"h": 346.9
},
"luminance": 0.18277
}Semantic roles & 50–950 ramp
primary
#BA518E
secondary
#9DCAB0
accent
#D38A55
background
#FDF8FA
surface
#FAF0F4
border
#D3CBCE
text
#140C10
muted
#837D7F