#BA5BB1#BA5BB1

#BA5BB1 is a mid, vivid purple. Relative luminance 0.211; OKLCH L 61.6% C 0.162 H 331.0°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA5BB1
RGBrgb(186, 91, 177)
HSLhsl(306, 41%, 54%)
HSVhsv(306, 51%, 73%)
CMYKcmyk(0%, 51.1%, 4.8%, 27.1%)
CIE-LABlab(53.06, 49.91, -28.78)
CIE-LCHlch(53.06, 57.61, 330.04°)
OKLaboklab(61.59% 0.1417 -0.0785)
OKLCHoklch(61.59% 0.162 331)
XYZxyz(31.9264, 21.0976, 43.9771)
Luminance0.2110 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BB1 #5BBA64
analogous
#945BBA #BA5BB1 #BA5B82
triadic
#BA5BB1 #B1BA5B #5BB1BA
tetradic
#BA5BB1 #BA945B #5BBA64 #5B82BA
square
#BA5BB1 #BA945B #5BBA64 #5B82BA
split-complementary
#BA5BB1 #82BA5B #5BBA94
monochromatic
#6D2E67 #984090 #BA5BB1 #CC86C5 #DEB1DA

Accessibility & contrast

On white

4.02
#BA5BB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#BA5BB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BB1
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BB1#FFFFFF#000000##000000
##BA5BB11.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5776B4
Deuteranopia (green-blind)
#7383AE
Tritanopia (blue-blind)
#C0637E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba5bb1;
/* rgb */ color: rgb(186, 91, 177);
/* oklch */ color: oklch(61.6% 0.162 331.0);
Tailwind
colors: {
  custom: {
    50: '#d18dc8',
    500: '#ba5bb1',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bb1;
$custom-light: #d18dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bb1",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 177
  },
  "hsl": {
    "h": 305.684,
    "s": 40.773,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61588,
    "c": 0.16199,
    "h": 331
  },
  "luminance": 0.21096
}

Semantic roles & 50–950 ramp

primary
#BA5BB1
secondary
#A4CDA8
accent
#D16357
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA5BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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