#BA54AA#BA54AA

#BA54AA is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.3% C 0.167 H 333.8°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#BA54AA
RGBrgb(186, 84, 170)
HSLhsl(309, 43%, 53%)
HSVhsv(309, 55%, 73%)
CMYKcmyk(0%, 54.8%, 8.6%, 27.1%)
CIE-LABlab(51.48, 52.12, -27.14)
CIE-LCHlch(51.48, 58.76, 332.49°)
OKLaboklab(60.32% 0.1502 -0.0738)
OKLCHoklch(60.32% 0.167 333.8)
XYZxyz(30.6758, 19.6842, 40.2062)
Luminance0.1968 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54AA #54BA64
analogous
#9754BA #BA54AA #BA5477
triadic
#BA54AA #AABA54 #54AABA
tetradic
#BA54AA #BA9754 #54BA64 #5477BA
square
#BA54AA #BA9754 #54BA64 #5477BA
split-complementary
#BA54AA #77BA54 #54BA97
monochromatic
#692A5F #953C87 #BA54AA #CC80C0 #DDABD5

Accessibility & contrast

On white

4.25
#BA54AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#BA54AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54AA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54AA#FFFFFF#000000##000000
##BA54AA1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5371AD
Deuteranopia (green-blind)
#7180A7
Tritanopia (blue-blind)
#C25A77
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba54aa;
/* rgb */ color: rgb(186, 84, 170);
/* oklch */ color: oklch(60.3% 0.167 333.8);
Tailwind
colors: {
  custom: {
    50: '#d189c3',
    500: '#ba54aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba54aa;
$custom-light: #d189c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54aa",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 170
  },
  "hsl": {
    "h": 309.412,
    "s": 42.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60323,
    "c": 0.16736,
    "h": 333.8
  },
  "luminance": 0.19682
}

Semantic roles & 50–950 ramp

primary
#BA54AA
secondary
#9FCBA6
accent
#D26956
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA54AA

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

Preview Lab → · Contrast checker → · Palette generator →

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