#BA5BB2#BA5BB2

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

Color values

HEX#BA5BB2
RGBrgb(186, 91, 178)
HSLhsl(305, 41%, 54%)
HSVhsv(305, 51%, 73%)
CMYKcmyk(0%, 51.1%, 4.3%, 27.1%)
CIE-LABlab(53.10, 50.09, -29.29)
CIE-LCHlch(53.10, 58.02, 329.68°)
OKLaboklab(61.64% 0.1419 -0.08)
OKLCHoklch(61.64% 0.163 330.6)
XYZxyz(32.0264, 21.1376, 44.5039)
Luminance0.2114 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BB2 #5BBA63
analogous
#935BBA #BA5BB2 #BA5B83
triadic
#BA5BB2 #B2BA5B #5BB2BA
tetradic
#BA5BB2 #BA935B #5BBA63 #5B83BA
square
#BA5BB2 #BA935B #5BBA63 #5B83BA
split-complementary
#BA5BB2 #83BA5B #5BBA93
monochromatic
#6D2E68 #984090 #BA5BB2 #CC86C6 #DEB1DA

Accessibility & contrast

On white

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

On black

5.23
#BA5BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BB2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BB2#FFFFFF#000000##000000
##BA5BB21.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5676B5
Deuteranopia (green-blind)
#7284AF
Tritanopia (blue-blind)
#C0637E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba5bb2;
/* rgb */ color: rgb(186, 91, 178);
/* oklch */ color: oklch(61.6% 0.163 330.6);
Tailwind
colors: {
  custom: {
    50: '#d18dc9',
    500: '#ba5bb2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bb2;
$custom-light: #d18dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bb2",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 305.053,
    "s": 40.773,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61635,
    "c": 0.16286,
    "h": 330.6
  },
  "luminance": 0.21136
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA5BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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