#BA2BA5#BA2BA5

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

Color values

HEX#BA2BA5
RGBrgb(186, 43, 165)
HSLhsl(309, 62%, 45%)
HSVhsv(309, 77%, 73%)
CMYKcmyk(0%, 76.9%, 11.3%, 27.1%)
CIE-LABlab(45.48, 67.33, -33.56)
CIE-LCHlch(45.48, 75.23, 333.50°)
OKLaboklab(55.88% 0.1965 -0.0918)
OKLCHoklch(55.88% 0.217 335)
XYZxyz(27.9055, 14.8860, 36.9936)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BA5 #2BBA40
analogous
#872BBA #BA2BA5 #BA2B5E
triadic
#BA2BA5 #A5BA2B #2BA5BA
tetradic
#BA2BA5 #BA872B #2BBA40 #2B5EBA
square
#BA2BA5 #BA872B #2BBA40 #2B5EBA
split-complementary
#BA2BA5 #5EBA2B #2BBA87
monochromatic
#57144D #882079 #BA2BA5 #D64CC2 #E17ED3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA2BA5#FFFFFF#000000##FFFFFF
##BA2BA51.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)
#2A5EA8
Deuteranopia (green-blind)
#5F73A2
Tritanopia (blue-blind)
#C33866
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ba5;
/* rgb */ color: rgb(186, 43, 165);
/* oklch */ color: oklch(55.9% 0.217 335.0);
Tailwind
colors: {
  custom: {
    50: '#d374c0',
    500: '#ba2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ba5;
$custom-light: #d374c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ba5",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 308.811,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55878,
    "c": 0.21691,
    "h": 335
  },
  "luminance": 0.14883
}

Semantic roles & 50–950 ramp

primary
#BA2BA5
secondary
#77CA83
accent
#E65A42
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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