#BA5ABB#BA5ABB

#BA5ABB is a mid, vivid purple. Relative luminance 0.213; OKLCH L 61.9% C 0.172 H 327.0°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#BA5ABB
RGBrgb(186, 90, 187)
HSLhsl(299, 42%, 54%)
HSVhsv(299, 52%, 73%)
CMYKcmyk(0.5%, 51.9%, 0%, 26.7%)
CIE-LABlab(53.32, 52.18, -34.15)
CIE-LCHlch(53.32, 62.36, 326.79°)
OKLaboklab(61.93% 0.1447 -0.0939)
OKLCHoklch(61.93% 0.172 327)
XYZxyz(32.8749, 21.3411, 49.3917)
Luminance0.2134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5ABB #5BBB5A
analogous
#895ABB #BA5ABB #BB5A8C
triadic
#BA5ABB #BBBA5A #5ABBBA
tetradic
#BA5ABB #BB895A #5BBB5A #5A8CBB
square
#BA5ABB #BB895A #5BBB5A #5A8CBB
split-complementary
#BA5ABB #8CBB5A #5ABB89
monochromatic
#6D2D6D #983F99 #BA5ABB #CC85CD #DEB1DF

Accessibility & contrast

On white

3.99
#BA5ABB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#BA5ABB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5ABB
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5ABB#FFFFFF#000000##000000
##BA5ABB1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5077BE
Deuteranopia (green-blind)
#6E84B8
Tritanopia (blue-blind)
#BF6582
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba5abb;
/* rgb */ color: rgb(186, 90, 187);
/* oklch */ color: oklch(61.9% 0.172 327.0);
Tailwind
colors: {
  custom: {
    50: '#d18dd0',
    500: '#ba5abb',
    950: '#000000',
  },
}
SCSS
$custom: #ba5abb;
$custom-light: #d18dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5abb",
  "rgb": {
    "r": 186,
    "g": 90,
    "b": 187
  },
  "hsl": {
    "h": 299.381,
    "s": 41.631,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61931,
    "c": 0.17248,
    "h": 327
  },
  "luminance": 0.21339
}

Semantic roles & 50–950 ramp

primary
#BA5ABB
secondary
#A4CDA4
accent
#D15658
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA5ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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