#BA5797#BA5797
#BA5797 is a mid, vivid pink. Relative luminance 0.195; OKLCH L 59.9% C 0.148 H 343.0°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).
Color values
| HEX | #BA5797 |
|---|---|
| RGB | rgb(186, 87, 151) |
| HSL | hsl(321, 42%, 54%) |
| HSV | hsv(321, 53%, 73%) |
| CMYK | cmyk(0%, 53.2%, 18.8%, 27.1%) |
| CIE-LAB | lab(51.26, 47.64, -16.31) |
| CIE-LCH | lch(51.26, 50.36, 341.11°) |
| OKLab | oklab(59.91% 0.1417 -0.0434) |
| OKLCH | oklch(59.91% 0.148 343) |
| XYZ | xyz(29.2444, 19.4922, 31.4943) |
| Luminance | 0.1949 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Pink
#CE5DAE
ΔE00 5.45
Light Plum
#9D5783
ΔE00 6.58
Purpleish
#98568D
ΔE00 7.21
Pale Magenta
#D767AD
ΔE00 7.56
Pinky Purple
#C94CBE
ΔE00 7.96
Purplish
#94568C
ΔE00 8.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA5797 #57BA7A
analogous
#AB57BA #BA5797 #BA5765
triadic
#BA5797 #97BA57 #5797BA
tetradic
#BA5797 #BAAB57 #57BA7A #5765BA
square
#BA5797 #BAAB57 #57BA7A #5765BA
split-complementary
#BA5797 #65BA57 #57BAAB
monochromatic
#6B2C55 #963E77 #BA5797 #CC82B2 #DEAECD
Accessibility & contrast
On white
4.29
#BA5797 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.90
#BA5797 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #BA5797
4.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA5797 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA5797 | 1.00 | 4.29 | 4.90 | 4.90 |
| #FFFFFF | 4.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5E7099
Deuteranopia (green-blind)
#798094
Tritanopia (blue-blind)
#C45770
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #ba5797; /* rgb */ color: rgb(186, 87, 151); /* oklch */ color: oklch(59.9% 0.148 343.0);
Tailwind
colors: {
custom: {
50: '#d18ab5',
500: '#ba5797',
950: '#000000',
},
}SCSS
$custom: #ba5797; $custom-light: #d18ab5; $custom-dark: #000000;
JSON
{
"hex": "#ba5797",
"rgb": {
"r": 186,
"g": 87,
"b": 151
},
"hsl": {
"h": 321.212,
"s": 41.772,
"l": 53.529
},
"oklch": {
"l": 0.59909,
"c": 0.1482,
"h": 343
},
"luminance": 0.1949
}Semantic roles & 50–950 ramp
primary
#BA5797
secondary
#A1CCB0
accent
#D28256
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140C11
muted
#837D80