#BA2BAD#BA2BAD

#BA2BAD is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.3% C 0.222 H 332.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#BA2BAD
RGBrgb(186, 43, 173)
HSLhsl(305, 62%, 45%)
HSVhsv(305, 77%, 73%)
CMYKcmyk(0%, 76.9%, 7%, 27.1%)
CIE-LABlab(45.89, 68.51, -37.66)
CIE-LCHlch(45.89, 78.18, 331.20°)
OKLaboklab(56.31% 0.1969 -0.1036)
OKLCHoklch(56.31% 0.222 332.2)
XYZxyz(28.6565, 15.1864, 40.9491)
Luminance0.1518 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BAD #2BBA38
analogous
#802BBA #BA2BAD #BA2B65
triadic
#BA2BAD #ADBA2B #2BADBA
tetradic
#BA2BAD #BA802B #2BBA38 #2B65BA
square
#BA2BAD #BA802B #2BBA38 #2B65BA
split-complementary
#BA2BAD #65BA2B #2BBA80
monochromatic
#571451 #88207F #BA2BAD #D64CC9 #E17ED8

Accessibility & contrast

On white

5.20
#BA2BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#BA2BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BAD
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BAD#FFFFFF#000000##FFFFFF
##BA2BAD1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2060B0
Deuteranopia (green-blind)
#5C74AA
Tritanopia (blue-blind)
#C23C6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2bad;
/* rgb */ color: rgb(186, 43, 173);
/* oklch */ color: oklch(56.3% 0.222 332.2);
Tailwind
colors: {
  custom: {
    50: '#d375c6',
    500: '#ba2bad',
    950: '#000000',
  },
}
SCSS
$custom: #ba2bad;
$custom-light: #d375c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2bad",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 305.455,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56306,
    "c": 0.22248,
    "h": 332.2
  },
  "luminance": 0.15184
}

Semantic roles & 50–950 ramp

primary
#BA2BAD
secondary
#77CA7F
accent
#E65142
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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