#BA2CA9#BA2CA9

#BA2CA9 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.219 H 333.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA2CA9
RGBrgb(186, 44, 169)
HSLhsl(307, 62%, 45%)
HSVhsv(307, 76%, 73%)
CMYKcmyk(0%, 76.3%, 9.1%, 27.1%)
CIE-LABlab(45.78, 67.63, -35.46)
CIE-LCHlch(45.78, 76.36, 332.33°)
OKLaboklab(56.16% 0.1959 -0.0973)
OKLCHoklch(56.16% 0.219 333.6)
XYZxyz(28.3120, 15.1075, 38.9534)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CA9 #2CBA3D
analogous
#842CBA #BA2CA9 #BA2C62
triadic
#BA2CA9 #A9BA2C #2CA9BA
tetradic
#BA2CA9 #BA842C #2CBA3D #2C62BA
square
#BA2CA9 #BA842C #2CBA3D #2C62BA
split-complementary
#BA2CA9 #62BA2C #2CBA84
monochromatic
#57154F #89207C #BA2CA9 #D54EC5 #E180D5

Accessibility & contrast

On white

5.22
#BA2CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BA2CA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CA9
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CA9#FFFFFF#000000##FFFFFF
##BA2CA91.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275FAC
Deuteranopia (green-blind)
#5E74A6
Tritanopia (blue-blind)
#C33B69
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ca9;
/* rgb */ color: rgb(186, 44, 169);
/* oklch */ color: oklch(56.2% 0.219 333.6);
Tailwind
colors: {
  custom: {
    50: '#d375c3',
    500: '#ba2ca9',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ca9;
$custom-light: #d375c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ca9",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 307.183,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56162,
    "c": 0.21872,
    "h": 333.6
  },
  "luminance": 0.15105
}

Semantic roles & 50–950 ramp

primary
#BA2CA9
secondary
#78CA82
accent
#E55643
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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