#BA2AA8#BA2AA8

#BA2AA8 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.0% C 0.220 H 333.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#BA2AA8
RGBrgb(186, 42, 168)
HSLhsl(308, 63%, 45%)
HSVhsv(308, 77%, 73%)
CMYKcmyk(0%, 77.4%, 9.7%, 27.1%)
CIE-LABlab(45.53, 68.05, -35.26)
CIE-LCHlch(45.53, 76.64, 332.61°)
OKLaboklab(55.97% 0.1975 -0.0967)
OKLCHoklch(55.97% 0.22 333.9)
XYZxyz(28.1458, 14.9247, 38.4366)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AA8 #2ABA3C
analogous
#842ABA #BA2AA8 #BA2A60
triadic
#BA2AA8 #A8BA2A #2AA8BA
tetradic
#BA2AA8 #BA842A #2ABA3C #2A60BA
square
#BA2AA8 #BA842A #2ABA3C #2A60BA
split-complementary
#BA2AA8 #60BA2A #2ABA84
monochromatic
#56134E #881F7B #BA2AA8 #D64BC5 #E27DD5

Accessibility & contrast

On white

5.27
#BA2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#BA2AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AA8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AA8#FFFFFF#000000##FFFFFF
##BA2AA81.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba2aa8;
/* rgb */ color: rgb(186, 42, 168);
/* oklch */ color: oklch(56.0% 0.220 333.9);
Tailwind
colors: {
  custom: {
    50: '#d374c2',
    500: '#ba2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #ba2aa8;
$custom-light: #d374c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2aa8",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 307.5,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55966,
    "c": 0.21992,
    "h": 333.9
  },
  "luminance": 0.14922
}

Semantic roles & 50–950 ramp

primary
#BA2AA8
secondary
#76CA80
accent
#E65642
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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