#BA2AB7#BA2AB7

#BA2AB7 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.8% C 0.231 H 329.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA2AB7
RGBrgb(186, 42, 183)
HSLhsl(301, 63%, 45%)
HSVhsv(301, 77%, 73%)
CMYKcmyk(0%, 77.4%, 1.6%, 27.1%)
CIE-LABlab(46.33, 70.33, -42.84)
CIE-LCHlch(46.33, 82.35, 328.65°)
OKLaboklab(56.8% 0.1977 -0.1186)
OKLCHoklch(56.8% 0.231 329)
XYZxyz(29.6247, 15.5162, 46.2252)
Luminance0.1551 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AB7 #2ABA2D
analogous
#752ABA #BA2AB7 #BA2A6F
triadic
#BA2AB7 #B7BA2A #2AB7BA
tetradic
#BA2AB7 #BA752A #2ABA2D #2A6FBA
square
#BA2AB7 #BA752A #2ABA2D #2A6FBA
split-complementary
#BA2AB7 #6FBA2A #2ABA75
monochromatic
#561355 #881F86 #BA2AB7 #D64BD3 #E27DE0

Accessibility & contrast

On white

5.12
#BA2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA2AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AB7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AB7#FFFFFF#000000##FFFFFF
##BA2AB71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0762BB
Deuteranopia (green-blind)
#5674B4
Tritanopia (blue-blind)
#C04170
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2ab7;
/* rgb */ color: rgb(186, 42, 183);
/* oklch */ color: oklch(56.8% 0.231 329.0);
Tailwind
colors: {
  custom: {
    50: '#d375cd',
    500: '#ba2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ab7;
$custom-light: #d375cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ab7",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 301.25,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56798,
    "c": 0.23058,
    "h": 329
  },
  "luminance": 0.15514
}

Semantic roles & 50–950 ramp

primary
#BA2AB7
secondary
#76CA78
accent
#E64542
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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