#BA54BB#BA54BB

#BA54BB is a mid, vivid purple. Relative luminance 0.204; OKLCH L 61.1% C 0.182 H 327.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BA54BB
RGBrgb(186, 84, 187)
HSLhsl(299, 43%, 53%)
HSVhsv(299, 55%, 73%)
CMYKcmyk(0.5%, 55.1%, 0%, 26.7%)
CIE-LABlab(52.25, 55.05, -35.83)
CIE-LCHlch(52.25, 65.68, 326.94°)
OKLaboklab(61.15% 0.1528 -0.0987)
OKLCHoklch(61.15% 0.182 327.1)
XYZxyz(32.3891, 20.3695, 49.2298)
Luminance0.2037 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54BB #55BB54
analogous
#8654BB #BA54BB #BB5489
triadic
#BA54BB #BBBA54 #54BBBA
tetradic
#BA54BB #BB8654 #55BB54 #5489BB
square
#BA54BB #BB8654 #55BB54 #5489BB
split-complementary
#BA54BB #89BB54 #54BB86
monochromatic
#6A2A6A #953C96 #BA54BB #CC80CC #DDACDE

Accessibility & contrast

On white

4.14
#BA54BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#BA54BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54BB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54BB#FFFFFF#000000##000000
##BA54BB1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4974BE
Deuteranopia (green-blind)
#6A81B8
Tritanopia (blue-blind)
#BF6080
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba54bb;
/* rgb */ color: rgb(186, 84, 187);
/* oklch */ color: oklch(61.1% 0.182 327.1);
Tailwind
colors: {
  custom: {
    50: '#d189d0',
    500: '#ba54bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba54bb;
$custom-light: #d189d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54bb",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 187
  },
  "hsl": {
    "h": 299.417,
    "s": 43.096,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61146,
    "c": 0.18184,
    "h": 327.1
  },
  "luminance": 0.20368
}

Semantic roles & 50–950 ramp

primary
#BA54BB
secondary
#A0CC9F
accent
#D35556
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA54BB

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

Preview Lab → · Contrast checker → · Palette generator →

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