#BA315E#BA315E
#BA315E is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.5% C 0.175 H 5.8°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #BA315E |
|---|---|
| RGB | rgb(186, 49, 94) |
| HSL | hsl(340, 58%, 46%) |
| HSV | hsv(340, 74%, 73%) |
| CMYK | cmyk(0%, 73.7%, 49.5%, 27.1%) |
| CIE-LAB | lab(43.43, 57.08, 6.70) |
| CIE-LCH | lch(43.43, 57.47, 6.70°) |
| OKLab | oklab(53.5% 0.1743 0.0176) |
| OKLCH | oklch(53.5% 0.175 5.8) |
| XYZ | xyz(23.3704, 13.4470, 11.9524) |
| Luminance | 0.1344 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Deep Pink
#CB0162
ΔE00 3.76
Light Burgundy
#A8415B
ΔE00 3.93
Dark Rose
#B5485D
ΔE00 4.97
Dark Pink
#CB416B
ΔE00 5.31
Dark Hot Pink
#D90166
ΔE00 5.32
Purplish Red
#B0054B
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA315E #31BA8D
analogous
#BA31A2 #BA315E #BA4831
triadic
#BA315E #5EBA31 #315EBA
tetradic
#BA315E #A2BA31 #31BA8D #4831BA
square
#BA315E #A2BA31 #31BA8D #4831BA
split-complementary
#BA315E #31BA48 #31A2BA
monochromatic
#59172D #8A2446 #BA315E #D2567F #DF86A3
Accessibility & contrast
On white
5.69
#BA315E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.69
#BA315E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA315E
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA315E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA315E | 1.00 | 5.69 | 3.69 | 5.69 |
| #FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#52555F
Deuteranopia (green-blind)
#76705B
Tritanopia (blue-blind)
#CB1344
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #ba315e; /* rgb */ color: rgb(186, 49, 94); /* oklch */ color: oklch(53.5% 0.175 5.8);
Tailwind
colors: {
custom: {
50: '#d5758b',
500: '#ba315e',
950: '#000000',
},
}SCSS
$custom: #ba315e; $custom-light: #d5758b; $custom-dark: #000000;
JSON
{
"hex": "#ba315e",
"rgb": {
"r": 186,
"g": 49,
"b": 94
},
"hsl": {
"h": 340.292,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.53501,
"c": 0.17521,
"h": 5.8
},
"luminance": 0.13444
}Semantic roles & 50–950 ramp
primary
#BA315E
secondary
#7EC9B0
accent
#E2AF46
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15090C
muted
#837B7D