#BA54BD#BA54BD

#BA54BD is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.2% C 0.184 H 326.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA54BD
RGBrgb(186, 84, 189)
HSLhsl(298, 44%, 54%)
HSVhsv(298, 56%, 74%)
CMYKcmyk(1.6%, 55.6%, 0%, 25.9%)
CIE-LABlab(52.35, 55.41, -36.83)
CIE-LCHlch(52.35, 66.53, 326.39°)
OKLaboklab(61.25% 0.153 -0.1015)
OKLCHoklch(61.25% 0.184 326.4)
XYZxyz(32.6047, 20.4558, 50.3652)
Luminance0.2045 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54BD #57BD54
analogous
#8554BD #BA54BD #BD548B
triadic
#BA54BD #BDBA54 #54BDBA
tetradic
#BA54BD #BD8554 #57BD54 #548BBD
square
#BA54BD #BD8554 #57BD54 #548BBD
split-complementary
#BA54BD #8BBD54 #54BD85
monochromatic
#6B2A6D #963B99 #BA54BD #CC80CE #DEACDF

Accessibility & contrast

On white

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

On black

5.09
#BA54BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54BD
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54BD#FFFFFF#000000##000000
##BA54BD1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4775C0
Deuteranopia (green-blind)
#6981BA
Tritanopia (blue-blind)
#BF6181
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba54bd;
/* rgb */ color: rgb(186, 84, 189);
/* oklch */ color: oklch(61.2% 0.184 326.4);
Tailwind
colors: {
  custom: {
    50: '#d189d1',
    500: '#ba54bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba54bd;
$custom-light: #d189d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54bd",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 189
  },
  "hsl": {
    "h": 298.286,
    "s": 44.304,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61247,
    "c": 0.18362,
    "h": 326.4
  },
  "luminance": 0.20454
}

Semantic roles & 50–950 ramp

primary
#BA54BD
secondary
#A1CDA0
accent
#D45457
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA54BD

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

Preview Lab → · Contrast checker → · Palette generator →

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