#BA226A#BA226A
#BA226A is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.193 H 358.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).
Color values
| HEX | #BA226A |
|---|---|
| RGB | rgb(186, 34, 106) |
| HSL | hsl(332, 69%, 43%) |
| HSV | hsv(332, 82%, 73%) |
| CMYK | cmyk(0%, 81.7%, 43%, 27.1%) |
| CIE-LAB | lab(42.20, 62.64, -2.58) |
| CIE-LCH | lch(42.20, 62.70, 357.64°) |
| OKLab | oklab(52.71% 0.1928 -0.006) |
| OKLCH | oklch(52.71% 0.193 358.2) |
| XYZ | xyz(23.4251, 12.6269, 14.8366) |
| Luminance | 0.1262 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Magenta (survey)
#C20078
ΔE00 3.77
Deep Pink
#CB0162
ΔE00 4.06
Mediumvioletred
#C71585
ΔE00 5.80
Violet Red
#A50055
ΔE00 6.08
Dark Hot Pink
#D90166
ΔE00 6.47
Deep Magenta
#A0025C
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA226A #22BA72
analogous
#BA22B6 #BA226A #BA2622
triadic
#BA226A #6ABA22 #226ABA
tetradic
#BA226A #B6BA22 #22BA72 #2622BA
square
#BA226A #B6BA22 #22BA72 #2622BA
split-complementary
#BA226A #22BA26 #22B6BA
monochromatic
#530F2F #86194D #BA226A #DC3E88 #E571A8
Accessibility & contrast
On white
5.96
#BA226A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#BA226A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA226A
5.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA226A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA226A | 1.00 | 5.96 | 3.52 | 5.96 |
| #FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#46516C
Deuteranopia (green-blind)
#706E67
Tritanopia (blue-blind)
#CA0044
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #ba226a; /* rgb */ color: rgb(186, 34, 106); /* oklch */ color: oklch(52.7% 0.193 358.2);
Tailwind
colors: {
custom: {
50: '#d46f94',
500: '#ba226a',
950: '#000000',
},
}SCSS
$custom: #ba226a; $custom-light: #d46f94; $custom-dark: #000000;
JSON
{
"hex": "#ba226a",
"rgb": {
"r": 186,
"g": 34,
"b": 106
},
"hsl": {
"h": 331.579,
"s": 69.091,
"l": 43.137
},
"oklch": {
"l": 0.52709,
"c": 0.19291,
"h": 358.2
},
"luminance": 0.12624
}Semantic roles & 50–950 ramp
primary
#BA226A
secondary
#6CCC9E
accent
#EC993C
background
#FDF7F9
surface
#FBEDF1
border
#D4C8CB
text
#15080D
muted
#837B7E