#BA57AB#BA57AB

#BA57AB is a mid, vivid purple. Relative luminance 0.202; OKLCH L 60.8% C 0.163 H 333.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BA57AB
RGBrgb(186, 87, 171)
HSLhsl(309, 42%, 54%)
HSVhsv(309, 53%, 73%)
CMYKcmyk(0%, 53.2%, 8.1%, 27.1%)
CIE-LABlab(52.06, 50.84, -26.83)
CIE-LCHlch(52.06, 57.49, 332.18°)
OKLaboklab(60.77% 0.1462 -0.0729)
OKLCHoklch(60.77% 0.163 333.5)
XYZxyz(31.0086, 20.1979, 40.7855)
Luminance0.2020 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57AB #57BA66
analogous
#9757BA #BA57AB #BA5779
triadic
#BA57AB #ABBA57 #57ABBA
tetradic
#BA57AB #BA9757 #57BA66 #5779BA
square
#BA57AB #BA9757 #57BA66 #5779BA
split-complementary
#BA57AB #79BA57 #57BA97
monochromatic
#6B2C61 #963E89 #BA57AB #CC82C1 #DEAED6

Accessibility & contrast

On white

4.17
#BA57AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#BA57AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57AB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57AB#FFFFFF#000000##000000
##BA57AB1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5573AE
Deuteranopia (green-blind)
#7281A8
Tritanopia (blue-blind)
#C15D79
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba57ab;
/* rgb */ color: rgb(186, 87, 171);
/* oklch */ color: oklch(60.8% 0.163 333.5);
Tailwind
colors: {
  custom: {
    50: '#d18bc4',
    500: '#ba57ab',
    950: '#000000',
  },
}
SCSS
$custom: #ba57ab;
$custom-light: #d18bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57ab",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 171
  },
  "hsl": {
    "h": 309.091,
    "s": 41.772,
    "l": 53.529
  },
  "oklch": {
    "l": 0.60767,
    "c": 0.1634,
    "h": 333.5
  },
  "luminance": 0.20196
}

Semantic roles & 50–950 ramp

primary
#BA57AB
secondary
#A1CCA8
accent
#D26956
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA57AB

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

Preview Lab → · Contrast checker → · Palette generator →

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