#BA54A6#BA54A6

#BA54A6 is a mid, vivid pink. Relative luminance 0.195; OKLCH L 60.1% C 0.164 H 335.6°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA54A6
RGBrgb(186, 84, 166)
HSLhsl(312, 43%, 53%)
HSVhsv(312, 55%, 73%)
CMYKcmyk(0%, 54.8%, 10.8%, 27.1%)
CIE-LABlab(51.31, 51.46, -25.06)
CIE-LCHlch(51.31, 57.24, 334.03°)
OKLaboklab(60.14% 0.1495 -0.0679)
OKLCHoklch(60.14% 0.164 335.6)
XYZxyz(30.3031, 19.5351, 38.2436)
Luminance0.1953 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54A6 #54BA68
analogous
#9B54BA #BA54A6 #BA5473
triadic
#BA54A6 #A6BA54 #54A6BA
tetradic
#BA54A6 #BA9B54 #54BA68 #5473BA
square
#BA54A6 #BA9B54 #54BA68 #5473BA
split-complementary
#BA54A6 #73BA54 #54BA9B
monochromatic
#692A5D #953C83 #BA54A6 #CC80BD #DDABD3

Accessibility & contrast

On white

4.28
#BA54A6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#BA54A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54A6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54A6#FFFFFF#000000##000000
##BA54A61.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5571A9
Deuteranopia (green-blind)
#7280A3
Tritanopia (blue-blind)
#C25975
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba54a6;
/* rgb */ color: rgb(186, 84, 166);
/* oklch */ color: oklch(60.1% 0.164 335.6);
Tailwind
colors: {
  custom: {
    50: '#d189c0',
    500: '#ba54a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba54a6;
$custom-light: #d189c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54a6",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 166
  },
  "hsl": {
    "h": 311.765,
    "s": 42.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60141,
    "c": 0.16416,
    "h": 335.6
  },
  "luminance": 0.19533
}

Semantic roles & 50–950 ramp

primary
#BA54A6
secondary
#9FCBA7
accent
#D26E56
background
#FDF8FB
surface
#FAF0F7
border
#D3CBD0
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA54A6

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

Preview Lab → · Contrast checker → · Palette generator →

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