#BA2CA7#BA2CA7

#BA2CA7 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.217 H 334.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#BA2CA7
RGBrgb(186, 44, 167)
HSLhsl(308, 62%, 45%)
HSVhsv(308, 76%, 73%)
CMYKcmyk(0%, 76.3%, 10.2%, 27.1%)
CIE-LABlab(45.68, 67.33, -34.43)
CIE-LCHlch(45.68, 75.62, 332.91°)
OKLaboklab(56.06% 0.1958 -0.0943)
OKLCHoklch(56.06% 0.217 334.3)
XYZxyz(28.1257, 15.0330, 37.9721)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CA7 #2CBA3F
analogous
#862CBA #BA2CA7 #BA2C60
triadic
#BA2CA7 #A7BA2C #2CA7BA
tetradic
#BA2CA7 #BA862C #2CBA3F #2C60BA
square
#BA2CA7 #BA862C #2CBA3F #2C60BA
split-complementary
#BA2CA7 #60BA2C #2CBA86
monochromatic
#57154E #89207B #BA2CA7 #D54EC3 #E180D4

Accessibility & contrast

On white

5.24
#BA2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#BA2CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CA7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CA7#FFFFFF#000000##FFFFFF
##BA2CA71.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295FAA
Deuteranopia (green-blind)
#5F73A4
Tritanopia (blue-blind)
#C33A68
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ca7;
/* rgb */ color: rgb(186, 44, 167);
/* oklch */ color: oklch(56.1% 0.217 334.3);
Tailwind
colors: {
  custom: {
    50: '#d375c1',
    500: '#ba2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ca7;
$custom-light: #d375c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ca7",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 308.028,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56056,
    "c": 0.21732,
    "h": 334.3
  },
  "luminance": 0.1503
}

Semantic roles & 50–950 ramp

primary
#BA2CA7
secondary
#78CA83
accent
#E55943
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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