#BA315B#BA315B
#BA315B is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.4% C 0.175 H 7.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #BA315B |
|---|---|
| RGB | rgb(186, 49, 91) |
| HSL | hsl(342, 58%, 46%) |
| HSV | hsv(342, 74%, 73%) |
| CMYK | cmyk(0%, 73.7%, 51.1%, 27.1%) |
| CIE-LAB | lab(43.35, 56.83, 8.46) |
| CIE-LCH | lch(43.35, 57.45, 8.47°) |
| OKLab | oklab(53.42% 0.1732 0.0219) |
| OKLCH | oklch(53.42% 0.175 7.2) |
| XYZ | xyz(23.2384, 13.3942, 11.2572) |
| Luminance | 0.1339 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Light Burgundy
#A8415B
ΔE00 3.79
Deep Pink
#CB0162
ΔE00 4.19
Dark Rose
#B5485D
ΔE00 4.53
Purplish Red
#B0054B
ΔE00 5.38
Dark Pink
#CB416B
ΔE00 5.44
Dark Hot Pink
#D90166
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA315B #31BA90
analogous
#BA319F #BA315B #BA4B31
triadic
#BA315B #5BBA31 #315BBA
tetradic
#BA315B #9FBA31 #31BA90 #4B31BA
square
#BA315B #9FBA31 #31BA90 #4B31BA
split-complementary
#BA315B #31BA4B #319FBA
monochromatic
#59172C #8A2443 #BA315B #D2567C #DF86A1
Accessibility & contrast
On white
5.71
#BA315B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#BA315B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA315B
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA315B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA315B | 1.00 | 5.71 | 3.68 | 5.71 |
| #FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#53555C
Deuteranopia (green-blind)
#777058
Tritanopia (blue-blind)
#CB1143
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #ba315b; /* rgb */ color: rgb(186, 49, 91); /* oklch */ color: oklch(53.4% 0.175 7.2);
Tailwind
colors: {
custom: {
50: '#d57489',
500: '#ba315b',
950: '#000000',
},
}SCSS
$custom: #ba315b; $custom-light: #d57489; $custom-dark: #000000;
JSON
{
"hex": "#ba315b",
"rgb": {
"r": 186,
"g": 49,
"b": 91
},
"hsl": {
"h": 341.606,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.53418,
"c": 0.17458,
"h": 7.2
},
"luminance": 0.13391
}Semantic roles & 50–950 ramp
primary
#BA315B
secondary
#7EC9B2
accent
#E2B246
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15090B
muted
#837B7C