#BA2CA8#BA2CA8

#BA2CA8 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.218 H 333.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#BA2CA8
RGBrgb(186, 44, 168)
HSLhsl(308, 62%, 45%)
HSVhsv(308, 76%, 73%)
CMYKcmyk(0%, 76.3%, 9.7%, 27.1%)
CIE-LABlab(45.73, 67.48, -34.95)
CIE-LCHlch(45.73, 75.99, 332.62°)
OKLaboklab(56.11% 0.1958 -0.0958)
OKLCHoklch(56.11% 0.218 333.9)
XYZxyz(28.2185, 15.0701, 38.4608)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CA8 #2CBA3E
analogous
#852CBA #BA2CA8 #BA2C61
triadic
#BA2CA8 #A8BA2C #2CA8BA
tetradic
#BA2CA8 #BA852C #2CBA3E #2C61BA
square
#BA2CA8 #BA852C #2CBA3E #2C61BA
split-complementary
#BA2CA8 #61BA2C #2CBA85
monochromatic
#57154F #89207B #BA2CA8 #D54EC4 #E180D5

Accessibility & contrast

On white

5.23
#BA2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA2CA8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CA8#FFFFFF#000000##FFFFFF
##BA2CA81.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285FAB
Deuteranopia (green-blind)
#5E73A5
Tritanopia (blue-blind)
#C33A68
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ca8;
/* rgb */ color: rgb(186, 44, 168);
/* oklch */ color: oklch(56.1% 0.218 333.9);
Tailwind
colors: {
  custom: {
    50: '#d375c2',
    500: '#ba2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ca8;
$custom-light: #d375c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ca8",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 307.606,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56109,
    "c": 0.21802,
    "h": 333.9
  },
  "luminance": 0.15068
}

Semantic roles & 50–950 ramp

primary
#BA2CA8
secondary
#78CA83
accent
#E55743
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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