#BA317E#BA317E
#BA317E is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.6% C 0.187 H 350.7°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).
Color values
| HEX | #BA317E |
|---|---|
| RGB | rgb(186, 49, 126) |
| HSL | hsl(326, 58%, 46%) |
| HSV | hsv(326, 74%, 73%) |
| CMYK | cmyk(0%, 73.7%, 32.3%, 27.1%) |
| CIE-LAB | lab(44.44, 60.33, -11.61) |
| CIE-LCH | lch(44.44, 61.44, 349.11°) |
| OKLab | oklab(54.57% 0.1845 -0.0302) |
| OKLCH | oklch(54.57% 0.187 350.7) |
| XYZ | xyz(25.1153, 14.1450, 21.1423) |
| Luminance | 0.1414 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 2.85
Magenta (survey)
#C20078
ΔE00 3.32
Deep Pink
#CB0162
ΔE00 7.69
Light Plum
#9D5783
ΔE00 8.52
Red Violet
#9E0168
ΔE00 8.64
Dark Hot Pink
#D90166
ΔE00 8.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA317E #31BA6D
analogous
#B131BA #BA317E #BA313A
triadic
#BA317E #7EBA31 #317EBA
tetradic
#BA317E #BAB131 #31BA6D #313ABA
square
#BA317E #BAB131 #31BA6D #313ABA
split-complementary
#BA317E #3ABA31 #31BAB1
monochromatic
#59173C #8A245D #BA317E #D2569C #DF86B8
Accessibility & contrast
On white
5.49
#BA317E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.83
#BA317E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA317E
5.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA317E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA317E | 1.00 | 5.49 | 3.83 | 5.49 |
| #FFFFFF | 5.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#485A80
Deuteranopia (green-blind)
#6F727B
Tritanopia (blue-blind)
#C82853
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #ba317e; /* rgb */ color: rgb(186, 49, 126); /* oklch */ color: oklch(54.6% 0.187 350.7);
Tailwind
colors: {
custom: {
50: '#d375a3',
500: '#ba317e',
950: '#000000',
},
}SCSS
$custom: #ba317e; $custom-light: #d375a3; $custom-dark: #000000;
JSON
{
"hex": "#ba317e",
"rgb": {
"r": 186,
"g": 49,
"b": 126
},
"hsl": {
"h": 326.277,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.54574,
"c": 0.18693,
"h": 350.7
},
"luminance": 0.14142
}Semantic roles & 50–950 ramp
primary
#BA317E
secondary
#7EC99F
accent
#E28A46
background
#FDF7FA
surface
#FBEEF3
border
#D4C9CD
text
#15090F
muted
#837B7F