#BA51AE#BA51AE

#BA51AE is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.1% C 0.175 H 332.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA51AE
RGBrgb(186, 81, 174)
HSLhsl(307, 43%, 52%)
HSVhsv(307, 56%, 73%)
CMYKcmyk(0%, 56.5%, 6.5%, 27.1%)
CIE-LABlab(51.13, 54.19, -30.02)
CIE-LCHlch(51.13, 61.95, 331.01°)
OKLaboklab(60.13% 0.155 -0.082)
OKLCHoklch(60.13% 0.175 332.1)
XYZxyz(30.8320, 19.3821, 42.1534)
Luminance0.1938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51AE #51BA5D
analogous
#9151BA #BA51AE #BA517A
triadic
#BA51AE #AEBA51 #51AEBA
tetradic
#BA51AE #BA9151 #51BA5D #517ABA
square
#BA51AE #BA9151 #51BA5D #517ABA
split-complementary
#BA51AE #7ABA51 #51BA91
monochromatic
#682960 #933A89 #BA51AE #CB7DC2 #DDA9D7

Accessibility & contrast

On white

4.31
#BA51AE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#BA51AE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51AE
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51AE#FFFFFF#000000##000000
##BA51AE1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D70B1
Deuteranopia (green-blind)
#6E7FAB
Tritanopia (blue-blind)
#C15978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba51ae;
/* rgb */ color: rgb(186, 81, 174);
/* oklch */ color: oklch(60.1% 0.175 332.1);
Tailwind
colors: {
  custom: {
    50: '#d187c6',
    500: '#ba51ae',
    950: '#000000',
  },
}
SCSS
$custom: #ba51ae;
$custom-light: #d187c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51ae",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 306.857,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60126,
    "c": 0.17532,
    "h": 332.1
  },
  "luminance": 0.1938
}

Semantic roles & 50–950 ramp

primary
#BA51AE
secondary
#9DCAA2
accent
#D36355
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA51AE

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

Preview Lab → · Contrast checker → · Palette generator →

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