#BA2BA6#BA2BA6

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

Color values

HEX#BA2BA6
RGBrgb(186, 43, 166)
HSLhsl(308, 62%, 45%)
HSVhsv(308, 77%, 73%)
CMYKcmyk(0%, 76.9%, 10.8%, 27.1%)
CIE-LABlab(45.53, 67.47, -34.08)
CIE-LCHlch(45.53, 75.59, 333.20°)
OKLaboklab(55.93% 0.1966 -0.0933)
OKLCHoklch(55.93% 0.218 334.6)
XYZxyz(27.9968, 14.9225, 37.4748)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BA6 #2BBA3F
analogous
#872BBA #BA2BA6 #BA2B5E
triadic
#BA2BA6 #A6BA2B #2BA6BA
tetradic
#BA2BA6 #BA872B #2BBA3F #2B5EBA
square
#BA2BA6 #BA872B #2BBA3F #2B5EBA
split-complementary
#BA2BA6 #5EBA2B #2BBA87
monochromatic
#57144D #88207A #BA2BA6 #D64CC3 #E17ED3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA2BA6#FFFFFF#000000##FFFFFF
##BA2BA61.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)
#295EA9
Deuteranopia (green-blind)
#5F73A3
Tritanopia (blue-blind)
#C33967
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2ba6;
/* rgb */ color: rgb(186, 43, 166);
/* oklch */ color: oklch(55.9% 0.218 334.6);
Tailwind
colors: {
  custom: {
    50: '#d374c1',
    500: '#ba2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ba6;
$custom-light: #d374c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ba6",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 308.392,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55931,
    "c": 0.2176,
    "h": 334.6
  },
  "luminance": 0.1492
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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