#BA2CA3#BA2CA3

#BA2CA3 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.8% C 0.215 H 335.7°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#BA2CA3
RGBrgb(186, 44, 163)
HSLhsl(310, 62%, 45%)
HSVhsv(310, 76%, 73%)
CMYKcmyk(0%, 76.3%, 12.4%, 27.1%)
CIE-LABlab(45.48, 66.75, -32.37)
CIE-LCHlch(45.48, 74.18, 334.13°)
OKLaboklab(55.85% 0.1955 -0.0884)
OKLCHoklch(55.85% 0.215 335.7)
XYZxyz(27.7617, 14.8874, 36.0547)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CA3 #2CBA43
analogous
#8A2CBA #BA2CA3 #BA2C5C
triadic
#BA2CA3 #A3BA2C #2CA3BA
tetradic
#BA2CA3 #BA8A2C #2CBA43 #2C5CBA
square
#BA2CA3 #BA8A2C #2CBA43 #2C5CBA
split-complementary
#BA2CA3 #5CBA2C #2CBA8A
monochromatic
#57154C #892078 #BA2CA3 #D54EBF #E180D1

Accessibility & contrast

On white

5.28
#BA2CA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#BA2CA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CA3
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CA3#FFFFFF#000000##FFFFFF
##BA2CA31.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5EA6
Deuteranopia (green-blind)
#6173A0
Tritanopia (blue-blind)
#C43865
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ca3;
/* rgb */ color: rgb(186, 44, 163);
/* oklch */ color: oklch(55.8% 0.215 335.7);
Tailwind
colors: {
  custom: {
    50: '#d375be',
    500: '#ba2ca3',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ca3;
$custom-light: #d375be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ca3",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 309.718,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55848,
    "c": 0.21457,
    "h": 335.7
  },
  "luminance": 0.14885
}

Semantic roles & 50–950 ramp

primary
#BA2CA3
secondary
#78CA85
accent
#E55D43
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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