#BA2AAA#BA2AAA

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

Color values

HEX#BA2AAA
RGBrgb(186, 42, 170)
HSLhsl(307, 63%, 45%)
HSVhsv(307, 77%, 73%)
CMYKcmyk(0%, 77.4%, 8.6%, 27.1%)
CIE-LABlab(45.63, 68.35, -36.29)
CIE-LCHlch(45.63, 77.38, 332.04°)
OKLaboklab(56.07% 0.1976 -0.0996)
OKLCHoklch(56.07% 0.221 333.2)
XYZxyz(28.3336, 14.9998, 39.4254)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AAA #2ABA3A
analogous
#822ABA #BA2AAA #BA2A62
triadic
#BA2AAA #AABA2A #2AAABA
tetradic
#BA2AAA #BA822A #2ABA3A #2A62BA
square
#BA2AAA #BA822A #2ABA3A #2A62BA
split-complementary
#BA2AAA #62BA2A #2ABA82
monochromatic
#56134F #881F7C #BA2AAA #D64BC7 #E27DD6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA2AAA#FFFFFF#000000##FFFFFF
##BA2AAA1.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)
#235FAD
Deuteranopia (green-blind)
#5D73A7
Tritanopia (blue-blind)
#C33A69
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2aaa;
/* rgb */ color: rgb(186, 42, 170);
/* oklch */ color: oklch(56.1% 0.221 333.2);
Tailwind
colors: {
  custom: {
    50: '#d374c4',
    500: '#ba2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #ba2aaa;
$custom-light: #d374c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2aaa",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 306.667,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56073,
    "c": 0.22131,
    "h": 333.2
  },
  "luminance": 0.14997
}

Semantic roles & 50–950 ramp

primary
#BA2AAA
secondary
#76CA7F
accent
#E65442
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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