#BA2AB9#BA2AB9

#BA2AB9 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.9% C 0.232 H 328.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#BA2AB9
RGBrgb(186, 42, 185)
HSLhsl(300, 63%, 45%)
HSVhsv(300, 77%, 73%)
CMYKcmyk(0%, 77.4%, 0.5%, 27.1%)
CIE-LABlab(46.45, 70.64, -43.84)
CIE-LCHlch(46.45, 83.14, 328.18°)
OKLaboklab(56.91% 0.1977 -0.1215)
OKLCHoklch(56.91% 0.232 328.4)
XYZxyz(29.8343, 15.6001, 47.3293)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AB9 #2ABA2B
analogous
#732ABA #BA2AB9 #BA2A71
triadic
#BA2AB9 #B9BA2A #2AB9BA
tetradic
#BA2AB9 #BA732A #2ABA2B #2A71BA
square
#BA2AB9 #BA732A #2ABA2B #2A71BA
split-complementary
#BA2AB9 #71BA2A #2ABA73
monochromatic
#561356 #881F87 #BA2AB9 #D64BD5 #E27DE1

Accessibility & contrast

On white

5.10
#BA2AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#BA2AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AB9
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AB9#FFFFFF#000000##FFFFFF
##BA2AB91.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BD
Deuteranopia (green-blind)
#5474B6
Tritanopia (blue-blind)
#C04271
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2ab9;
/* rgb */ color: rgb(186, 42, 185);
/* oklch */ color: oklch(56.9% 0.232 328.4);
Tailwind
colors: {
  custom: {
    50: '#d375ce',
    500: '#ba2ab9',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ab9;
$custom-light: #d375ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ab9",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 300.417,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56914,
    "c": 0.23205,
    "h": 328.4
  },
  "luminance": 0.15598
}

Semantic roles & 50–950 ramp

primary
#BA2AB9
secondary
#76CA76
accent
#E64342
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA2AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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