#BA2DAB#BA2DAB

#BA2DAB is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.3% C 0.219 H 332.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#BA2DAB
RGBrgb(186, 45, 171)
HSLhsl(306, 61%, 45%)
HSVhsv(306, 76%, 73%)
CMYKcmyk(0%, 75.8%, 8.1%, 27.1%)
CIE-LABlab(45.99, 67.63, -36.32)
CIE-LCHlch(45.99, 76.77, 331.76°)
OKLaboklab(56.34% 0.1951 -0.0998)
OKLCHoklch(56.34% 0.219 332.9)
XYZxyz(28.5389, 15.2586, 39.9623)
Luminance0.1526 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2DAB #2DBA3C
analogous
#822DBA #BA2DAB #BA2D64
triadic
#BA2DAB #ABBA2D #2DABBA
tetradic
#BA2DAB #BA822D #2DBA3C #2D64BA
square
#BA2DAB #BA822D #2DBA3C #2D64BA
split-complementary
#BA2DAB #64BA2D #2DBA82
monochromatic
#571550 #89217E #BA2DAB #D550C6 #E081D6

Accessibility & contrast

On white

5.18
#BA2DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#BA2DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2DAB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2DAB#FFFFFF#000000##FFFFFF
##BA2DAB1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2660AE
Deuteranopia (green-blind)
#5D74A8
Tritanopia (blue-blind)
#C23D6A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2dab;
/* rgb */ color: rgb(186, 45, 171);
/* oklch */ color: oklch(56.3% 0.219 332.9);
Tailwind
colors: {
  custom: {
    50: '#d375c4',
    500: '#ba2dab',
    950: '#000000',
  },
}
SCSS
$custom: #ba2dab;
$custom-light: #d375c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2dab",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 306.383,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56342,
    "c": 0.21915,
    "h": 332.9
  },
  "luminance": 0.15256
}

Semantic roles & 50–950 ramp

primary
#BA2DAB
secondary
#79C982
accent
#E45544
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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