#BA2CA6#BA2CA6

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

Color values

HEX#BA2CA6
RGBrgb(186, 44, 166)
HSLhsl(308, 62%, 45%)
HSVhsv(308, 76%, 73%)
CMYKcmyk(0%, 76.3%, 10.8%, 27.1%)
CIE-LABlab(45.63, 67.18, -33.92)
CIE-LCHlch(45.63, 75.26, 333.21°)
OKLaboklab(56% 0.1957 -0.0928)
OKLCHoklch(56% 0.217 334.6)
XYZxyz(28.0336, 14.9961, 37.4871)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CA6 #2CBA40
analogous
#872CBA #BA2CA6 #BA2C5F
triadic
#BA2CA6 #A6BA2C #2CA6BA
tetradic
#BA2CA6 #BA872C #2CBA40 #2C5FBA
square
#BA2CA6 #BA872C #2CBA40 #2C5FBA
split-complementary
#BA2CA6 #5FBA2C #2CBA87
monochromatic
#57154E #89207A #BA2CA6 #D54EC2 #E180D3

Accessibility & contrast

On white

5.25
#BA2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#BA2CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CA6
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CA6#FFFFFF#000000##FFFFFF
##BA2CA61.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5FA9
Deuteranopia (green-blind)
#5F73A3
Tritanopia (blue-blind)
#C33967
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ca6;
/* rgb */ color: rgb(186, 44, 166);
/* oklch */ color: oklch(56.0% 0.217 334.6);
Tailwind
colors: {
  custom: {
    50: '#d375c1',
    500: '#ba2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ca6;
$custom-light: #d375c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ca6",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 308.451,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56003,
    "c": 0.21663,
    "h": 334.6
  },
  "luminance": 0.14994
}

Semantic roles & 50–950 ramp

primary
#BA2CA6
secondary
#78CA84
accent
#E55A43
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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