#BA2AA7#BA2AA7

#BA2AA7 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.9% C 0.219 H 334.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#BA2AA7
RGBrgb(186, 42, 167)
HSLhsl(308, 63%, 45%)
HSVhsv(308, 77%, 73%)
CMYKcmyk(0%, 77.4%, 10.2%, 27.1%)
CIE-LABlab(45.48, 67.90, -34.75)
CIE-LCHlch(45.48, 76.28, 332.90°)
OKLaboklab(55.91% 0.1975 -0.0952)
OKLCHoklch(55.91% 0.219 334.3)
XYZxyz(28.0530, 14.8876, 37.9479)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AA7 #2ABA3D
analogous
#852ABA #BA2AA7 #BA2A5F
triadic
#BA2AA7 #A7BA2A #2AA7BA
tetradic
#BA2AA7 #BA852A #2ABA3D #2A5FBA
square
#BA2AA7 #BA852A #2ABA3D #2A5FBA
split-complementary
#BA2AA7 #5FBA2A #2ABA85
monochromatic
#56134D #881F7A #BA2AA7 #D64BC4 #E27DD4

Accessibility & contrast

On white

5.28
#BA2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA2AA7
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AA7#FFFFFF#000000##FFFFFF
##BA2AA71.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275EAA
Deuteranopia (green-blind)
#5E73A4
Tritanopia (blue-blind)
#C33867
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2aa7;
/* rgb */ color: rgb(186, 42, 167);
/* oklch */ color: oklch(55.9% 0.219 334.3);
Tailwind
colors: {
  custom: {
    50: '#d374c1',
    500: '#ba2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2aa7;
$custom-light: #d374c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2aa7",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 307.917,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55913,
    "c": 0.21923,
    "h": 334.3
  },
  "luminance": 0.14885
}

Semantic roles & 50–950 ramp

primary
#BA2AA7
secondary
#76CA81
accent
#E65742
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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