#BA2CBA#BA2CBA

#BA2CBA is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.1% C 0.231 H 328.1°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA2CBA
RGBrgb(186, 44, 186)
HSLhsl(300, 62%, 45%)
HSVhsv(300, 76%, 73%)
CMYKcmyk(0%, 76.3%, 0%, 27.1%)
CIE-LABlab(46.70, 70.24, -44.03)
CIE-LCHlch(46.70, 82.90, 327.92°)
OKLaboklab(57.11% 0.1961 -0.1221)
OKLCHoklch(57.11% 0.231 328.1)
XYZxyz(30.0129, 15.7879, 47.9115)
Luminance0.1579 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CBA #2CBA2C
analogous
#732CBA #BA2CBA #BA2C73
triadic
#BA2CBA #BABA2C #2CBABA
tetradic
#BA2CBA #BA732C #2CBA2C #2C73BA
square
#BA2CBA #BA732C #2CBA2C #2C73BA
split-complementary
#BA2CBA #73BA2C #2CBA73
monochromatic
#571557 #892089 #BA2CBA #D54ED5 #E180E1

Accessibility & contrast

On white

5.05
#BA2CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#BA2CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CBA
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CBA#FFFFFF#000000##FFFFFF
##BA2CBA1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0263BE
Deuteranopia (green-blind)
#5575B7
Tritanopia (blue-blind)
#C04472
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba2cba;
/* rgb */ color: rgb(186, 44, 186);
/* oklch */ color: oklch(57.1% 0.231 328.1);
Tailwind
colors: {
  custom: {
    50: '#d376cf',
    500: '#ba2cba',
    950: '#000000',
  },
}
SCSS
$custom: #ba2cba;
$custom-light: #d376cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2cba",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5711,
    "c": 0.23097,
    "h": 328.1
  },
  "luminance": 0.15786
}

Semantic roles & 50–950 ramp

primary
#BA2CBA
secondary
#78CA78
accent
#E54343
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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