#BA2CB5#BA2CB5

#BA2CB5 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.8% C 0.227 H 329.6°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#BA2CB5
RGBrgb(186, 44, 181)
HSLhsl(302, 62%, 45%)
HSVhsv(302, 76%, 73%)
CMYKcmyk(0%, 76.3%, 2.7%, 27.1%)
CIE-LABlab(46.42, 69.46, -41.54)
CIE-LCHlch(46.42, 80.93, 329.12°)
OKLaboklab(56.82% 0.1962 -0.1149)
OKLCHoklch(56.82% 0.227 329.6)
XYZxyz(29.4907, 15.5790, 45.1609)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CB5 #2CBA31
analogous
#782CBA #BA2CB5 #BA2C6E
triadic
#BA2CB5 #B5BA2C #2CB5BA
tetradic
#BA2CB5 #BA782C #2CBA31 #2C6EBA
square
#BA2CB5 #BA782C #2CBA31 #2C6EBA
split-complementary
#BA2CB5 #6EBA2C #2CBA78
monochromatic
#571555 #892085 #BA2CB5 #D54ED0 #E180DD

Accessibility & contrast

On white

5.10
#BA2CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#BA2CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CB5
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CB5#FFFFFF#000000##FFFFFF
##BA2CB51.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1362B9
Deuteranopia (green-blind)
#5875B2
Tritanopia (blue-blind)
#C1416F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2cb5;
/* rgb */ color: rgb(186, 44, 181);
/* oklch */ color: oklch(56.8% 0.227 329.6);
Tailwind
colors: {
  custom: {
    50: '#d375cc',
    500: '#ba2cb5',
    950: '#000000',
  },
}
SCSS
$custom: #ba2cb5;
$custom-light: #d375cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2cb5",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 302.113,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56823,
    "c": 0.22731,
    "h": 329.6
  },
  "luminance": 0.15577
}

Semantic roles & 50–950 ramp

primary
#BA2CB5
secondary
#78CA7B
accent
#E54943
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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