#BA2CB3#BA2CB3

#BA2CB3 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.7% C 0.226 H 330.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA2CB3
RGBrgb(186, 44, 179)
HSLhsl(303, 62%, 45%)
HSVhsv(303, 76%, 73%)
CMYKcmyk(0%, 76.3%, 3.8%, 27.1%)
CIE-LABlab(46.31, 69.14, -40.53)
CIE-LCHlch(46.31, 80.15, 329.62°)
OKLaboklab(56.71% 0.1962 -0.1119)
OKLCHoklch(56.71% 0.226 330.3)
XYZxyz(29.2870, 15.4975, 44.0879)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CB3 #2CBA33
analogous
#7A2CBA #BA2CB3 #BA2C6C
triadic
#BA2CB3 #B3BA2C #2CB3BA
tetradic
#BA2CB3 #BA7A2C #2CBA33 #2C6CBA
square
#BA2CB3 #BA7A2C #2CBA33 #2C6CBA
split-complementary
#BA2CB3 #6CBA2C #2CBA7A
monochromatic
#571554 #892083 #BA2CB3 #D54ECE #E180DC

Accessibility & contrast

On white

5.12
#BA2CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA2CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CB3
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CB3#FFFFFF#000000##FFFFFF
##BA2CB31.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1861B7
Deuteranopia (green-blind)
#5974B0
Tritanopia (blue-blind)
#C1406E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2cb3;
/* rgb */ color: rgb(186, 44, 179);
/* oklch */ color: oklch(56.7% 0.226 330.3);
Tailwind
colors: {
  custom: {
    50: '#d375ca',
    500: '#ba2cb3',
    950: '#000000',
  },
}
SCSS
$custom: #ba2cb3;
$custom-light: #d375ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2cb3",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 302.958,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5671,
    "c": 0.22585,
    "h": 330.3
  },
  "luminance": 0.15495
}

Semantic roles & 50–950 ramp

primary
#BA2CB3
secondary
#78CA7C
accent
#E54B43
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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