#BA54BC#BA54BC

#BA54BC is a mid, vivid purple. Relative luminance 0.204; OKLCH L 61.2% C 0.183 H 326.8°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BA54BC
RGBrgb(186, 84, 188)
HSLhsl(299, 44%, 53%)
HSVhsv(299, 55%, 74%)
CMYKcmyk(1.1%, 55.3%, 0%, 26.3%)
CIE-LABlab(52.30, 55.23, -36.33)
CIE-LCHlch(52.30, 66.11, 326.66°)
OKLaboklab(61.2% 0.1529 -0.1001)
OKLCHoklch(61.2% 0.183 326.8)
XYZxyz(32.4965, 20.4125, 49.7955)
Luminance0.2041 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54BC #56BC54
analogous
#8654BC #BA54BC #BC548A
triadic
#BA54BC #BCBA54 #54BCBA
tetradic
#BA54BC #BC8654 #56BC54 #548ABC
square
#BA54BC #BC8654 #56BC54 #548ABC
split-complementary
#BA54BC #8ABC54 #54BC86
monochromatic
#6A2A6B #963B97 #BA54BC #CC80CD #DDACDE

Accessibility & contrast

On white

4.13
#BA54BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#BA54BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54BC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54BC#FFFFFF#000000##000000
##BA54BC1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4874BF
Deuteranopia (green-blind)
#6981B9
Tritanopia (blue-blind)
#BF6080
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba54bc;
/* rgb */ color: rgb(186, 84, 188);
/* oklch */ color: oklch(61.2% 0.183 326.8);
Tailwind
colors: {
  custom: {
    50: '#d189d0',
    500: '#ba54bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba54bc;
$custom-light: #d189d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54bc",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 188
  },
  "hsl": {
    "h": 298.846,
    "s": 43.697,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61196,
    "c": 0.18273,
    "h": 326.8
  },
  "luminance": 0.20411
}

Semantic roles & 50–950 ramp

primary
#BA54BC
secondary
#A0CCA0
accent
#D35457
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA54BC

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

Preview Lab → · Contrast checker → · Palette generator →

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