#BA54BF#BA54BF

#BA54BF is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.4% C 0.185 H 325.7°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA54BF
RGBrgb(186, 84, 191)
HSLhsl(297, 46%, 54%)
HSVhsv(297, 56%, 75%)
CMYKcmyk(2.6%, 56%, 0%, 25.1%)
CIE-LABlab(52.45, 55.77, -37.83)
CIE-LCHlch(52.45, 67.39, 325.85°)
OKLaboklab(61.35% 0.1532 -0.1044)
OKLCHoklch(61.35% 0.185 325.7)
XYZxyz(32.8233, 20.5432, 51.5165)
Luminance0.2054 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54BF #59BF54
analogous
#8554BF #BA54BF #BF548F
triadic
#BA54BF #BFBA54 #54BFBA
tetradic
#BA54BF #BF8554 #59BF54 #548FBF
square
#BA54BF #BF8554 #59BF54 #548FBF
split-complementary
#BA54BF #8FBF54 #54BF85
monochromatic
#6C2A6F #973A9C #BA54BF #CC81D0 #DEADE0

Accessibility & contrast

On white

4.11
#BA54BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#BA54BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54BF
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54BF#FFFFFF#000000##000000
##BA54BF1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4675C2
Deuteranopia (green-blind)
#6882BC
Tritanopia (blue-blind)
#BE6282
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba54bf;
/* rgb */ color: rgb(186, 84, 191);
/* oklch */ color: oklch(61.4% 0.185 325.7);
Tailwind
colors: {
  custom: {
    50: '#d189d2',
    500: '#ba54bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba54bf;
$custom-light: #d189d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54bf",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 191
  },
  "hsl": {
    "h": 297.196,
    "s": 45.532,
    "l": 53.922
  },
  "oklch": {
    "l": 0.6135,
    "c": 0.1854,
    "h": 325.7
  },
  "luminance": 0.20541
}

Semantic roles & 50–950 ramp

primary
#BA54BF
secondary
#A3CEA1
accent
#D55359
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA54BF

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

Preview Lab → · Contrast checker → · Palette generator →

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