#BA5AAA#BA5AAA

#BA5AAA is a mid, vivid pink. Relative luminance 0.207; OKLCH L 61.1% C 0.158 H 334.0°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#BA5AAA
RGBrgb(186, 90, 170)
HSLhsl(310, 41%, 54%)
HSVhsv(310, 52%, 73%)
CMYKcmyk(0%, 51.6%, 8.6%, 27.1%)
CIE-LABlab(52.57, 49.21, -25.45)
CIE-LCHlch(52.57, 55.40, 332.65°)
OKLaboklab(61.13% 0.1418 -0.0691)
OKLCHoklch(61.13% 0.158 334)
XYZxyz(31.1616, 20.6558, 40.3681)
Luminance0.2065 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5AAA #5ABA6A
analogous
#9A5ABA #BA5AAA #BA5A7A
triadic
#BA5AAA #AABA5A #5AAABA
tetradic
#BA5AAA #BA9A5A #5ABA6A #5A7ABA
square
#BA5AAA #BA9A5A #5ABA6A #5A7ABA
split-complementary
#BA5AAA #7ABA5A #5ABA9A
monochromatic
#6C2D62 #973F89 #BA5AAA #CC85C0 #DEB0D6

Accessibility & contrast

On white

4.09
#BA5AAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#BA5AAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5AAA
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5AAA#FFFFFF#000000##000000
##BA5AAA1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5975AD
Deuteranopia (green-blind)
#7583A7
Tritanopia (blue-blind)
#C2607A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba5aaa;
/* rgb */ color: rgb(186, 90, 170);
/* oklch */ color: oklch(61.1% 0.158 334.0);
Tailwind
colors: {
  custom: {
    50: '#d18cc3',
    500: '#ba5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #ba5aaa;
$custom-light: #d18cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5aaa",
  "rgb": {
    "r": 186,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 310,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.61131,
    "c": 0.1577,
    "h": 334
  },
  "luminance": 0.20654
}

Semantic roles & 50–950 ramp

primary
#BA5AAA
secondary
#A3CCAA
accent
#D16B57
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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