#BA4797#BA4797
#BA4797 is a mid, vivid pink. Relative luminance 0.172; OKLCH L 57.9% C 0.173 H 341.5°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #BA4797 |
|---|---|
| RGB | rgb(186, 71, 151) |
| HSL | hsl(318, 45%, 50%) |
| HSV | hsv(318, 62%, 73%) |
| CMYK | cmyk(0%, 61.8%, 18.8%, 27.1%) |
| CIE-LAB | lab(48.49, 55.08, -20.54) |
| CIE-LCH | lch(48.49, 58.78, 339.55°) |
| OKLab | oklab(57.86% 0.164 -0.055) |
| OKLCH | oklch(57.86% 0.173 341.5) |
| XYZ | xyz(28.0895, 17.1825, 31.1093) |
| Luminance | 0.1718 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Ugly Purple
#A442A0
ΔE00 6.37
Mediumvioletred
#C71585
ΔE00 6.39
Purpley Pink
#C83CB9
ΔE00 6.45
Purpleish
#98568D
ΔE00 7.00
Light Plum
#9D5783
ΔE00 7.24
Pinky Purple
#C94CBE
ΔE00 7.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA4797 #47BA6A
analogous
#A447BA #BA4797 #BA475D
triadic
#BA4797 #97BA47 #4797BA
tetradic
#BA4797 #BAA447 #47BA6A #475DBA
square
#BA4797 #BAA447 #47BA6A #475DBA
split-complementary
#BA4797 #5DBA47 #47BAA4
monochromatic
#62254F #8E3573 #BA4797 #CB74B0 #DBA0C9
Accessibility & contrast
On white
4.73
#BA4797 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.44
#BA4797 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA4797
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA4797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA4797 | 1.00 | 4.73 | 4.44 | 4.73 |
| #FFFFFF | 4.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F6799
Deuteranopia (green-blind)
#717A94
Tritanopia (blue-blind)
#C54969
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #ba4797; /* rgb */ color: rgb(186, 71, 151); /* oklch */ color: oklch(57.9% 0.173 341.5);
Tailwind
colors: {
custom: {
50: '#d281b5',
500: '#ba4797',
950: '#000000',
},
}SCSS
$custom: #ba4797; $custom-light: #d281b5; $custom-dark: #000000;
JSON
{
"hex": "#ba4797",
"rgb": {
"r": 186,
"g": 71,
"b": 151
},
"hsl": {
"h": 318.261,
"s": 45.455,
"l": 50.392
},
"oklch": {
"l": 0.57861,
"c": 0.17302,
"h": 341.5
},
"luminance": 0.1718
}Semantic roles & 50–950 ramp
primary
#BA4797
secondary
#95C8A4
accent
#D57A53
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B11
muted
#837C80