#BA2DBB#BA2DBB

#BA2DBB is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.2% C 0.231 H 327.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BA2DBB
RGBrgb(186, 45, 187)
HSLhsl(300, 61%, 45%)
HSVhsv(300, 76%, 73%)
CMYKcmyk(0.5%, 75.9%, 0%, 26.7%)
CIE-LABlab(46.85, 70.12, -44.36)
CIE-LCHlch(46.85, 82.97, 327.68°)
OKLaboklab(57.24% 0.1952 -0.1231)
OKLCHoklch(57.24% 0.231 327.8)
XYZxyz(30.1573, 15.9059, 48.4859)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2DBB #2EBB2D
analogous
#732DBB #BA2DBB #BB2D75
triadic
#BA2DBB #BBBA2D #2DBBBA
tetradic
#BA2DBB #BB732D #2EBB2D #2D75BB
square
#BA2DBB #BB732D #2EBB2D #2D75BB
split-complementary
#BA2DBB #75BB2D #2DBB73
monochromatic
#581558 #89218A #BA2DBB #D450D5 #E082E1

Accessibility & contrast

On white

5.02
#BA2DBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#BA2DBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2DBB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2DBB#FFFFFF#000000##FFFFFF
##BA2DBB1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0264BF
Deuteranopia (green-blind)
#5475B8
Tritanopia (blue-blind)
#C04573
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba2dbb;
/* rgb */ color: rgb(186, 45, 187);
/* oklch */ color: oklch(57.2% 0.231 327.8);
Tailwind
colors: {
  custom: {
    50: '#d376d0',
    500: '#ba2dbb',
    950: '#000000',
  },
}
SCSS
$custom: #ba2dbb;
$custom-light: #d376d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2dbb",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 187
  },
  "hsl": {
    "h": 299.577,
    "s": 61.207,
    "l": 45.49
  },
  "oklch": {
    "l": 0.57239,
    "c": 0.23079,
    "h": 327.8
  },
  "luminance": 0.15904
}

Semantic roles & 50–950 ramp

primary
#BA2DBB
secondary
#7BCA7A
accent
#E44345
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA2DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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