#BA2EA1#BA2EA1

#BA2EA1 is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 55.9% C 0.211 H 336.4°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA2EA1
RGBrgb(186, 46, 161)
HSLhsl(311, 60%, 45%)
HSVhsv(311, 75%, 73%)
CMYKcmyk(0%, 75.3%, 13.4%, 27.1%)
CIE-LABlab(45.59, 65.86, -31.00)
CIE-LCHlch(45.59, 72.79, 334.79°)
OKLaboklab(55.9% 0.1936 -0.0845)
OKLCHoklch(55.9% 0.211 336.4)
XYZxyz(27.6602, 14.9689, 35.1438)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EA1 #2EBA47
analogous
#8D2EBA #BA2EA1 #BA2E5B
triadic
#BA2EA1 #A1BA2E #2EA1BA
tetradic
#BA2EA1 #BA8D2E #2EBA47 #2E5BBA
square
#BA2EA1 #BA8D2E #2EBA47 #2E5BBA
split-complementary
#BA2EA1 #5BBA2E #2EBA8D
monochromatic
#58164C #892277 #BA2EA1 #D451BD #E082CF

Accessibility & contrast

On white

5.26
#BA2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#BA2EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2EA1
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EA1#FFFFFF#000000##FFFFFF
##BA2EA11.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315EA4
Deuteranopia (green-blind)
#62739E
Tritanopia (blue-blind)
#C43865
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ea1;
/* rgb */ color: rgb(186, 46, 161);
/* oklch */ color: oklch(55.9% 0.211 336.4);
Tailwind
colors: {
  custom: {
    50: '#d375bd',
    500: '#ba2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ea1;
$custom-light: #d375bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ea1",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 310.714,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55896,
    "c": 0.2112,
    "h": 336.4
  },
  "luminance": 0.14966
}

Semantic roles & 50–950 ramp

primary
#BA2EA1
secondary
#7BC989
accent
#E36144
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2EA1

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#BA2EA1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva