#BA407E#BA407E
#BA407E is a mid, vivid pink. Relative luminance 0.156; OKLCH L 56.1% C 0.168 H 352.5°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #BA407E |
|---|---|
| RGB | rgb(186, 64, 126) |
| HSL | hsl(330, 49%, 49%) |
| HSV | hsv(330, 66%, 73%) |
| CMYK | cmyk(0%, 65.6%, 32.3%, 27.1%) |
| CIE-LAB | lab(46.47, 54.70, -8.56) |
| CIE-LCH | lch(46.47, 55.37, 351.11°) |
| OKLab | oklab(56.06% 0.1669 -0.022) |
| OKLCH | oklch(56.06% 0.168 352.5) |
| XYZ | xyz(25.8503, 15.6151, 21.3873) |
| Luminance | 0.1561 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 4.95
Magenta (survey)
#C20078
ΔE00 5.64
Light Plum
#9D5783
ΔE00 7.19
Dark Pink
#CB416B
ΔE00 7.71
Deep Pink
#CB0162
ΔE00 7.86
Darkish Pink
#DA467D
ΔE00 8.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA407E #40BA7C
analogous
#B940BA #BA407E #BA4041
triadic
#BA407E #7EBA40 #407EBA
tetradic
#BA407E #BAB940 #40BA7C #4041BA
square
#BA407E #BAB940 #40BA7C #4041BA
split-complementary
#BA407E #41BA40 #40BAB9
monochromatic
#5F2140 #8C305F #BA407E #CC6B9C #DC99BB
Accessibility & contrast
On white
5.09
#BA407E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#BA407E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA407E
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA407E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA407E | 1.00 | 5.09 | 4.12 | 5.09 |
| #FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#536080
Deuteranopia (green-blind)
#75767B
Tritanopia (blue-blind)
#C8385A
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #ba407e; /* rgb */ color: rgb(186, 64, 126); /* oklch */ color: oklch(56.1% 0.168 352.5);
Tailwind
colors: {
custom: {
50: '#d37da3',
500: '#ba407e',
950: '#000000',
},
}SCSS
$custom: #ba407e; $custom-light: #d37da3; $custom-dark: #000000;
JSON
{
"hex": "#ba407e",
"rgb": {
"r": 186,
"g": 64,
"b": 126
},
"hsl": {
"h": 329.508,
"s": 48.8,
"l": 49.02
},
"oklch": {
"l": 0.56062,
"c": 0.1683,
"h": 352.5
},
"luminance": 0.15612
}Semantic roles & 50–950 ramp
primary
#BA407E
secondary
#8EC8AA
accent
#D8934F
background
#FDF7FA
surface
#FAEEF3
border
#D3C9CD
text
#150A0F
muted
#837C7F