#BA57BD#BA57BD

#BA57BD is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.6% C 0.179 H 326.3°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#BA57BD
RGBrgb(186, 87, 189)
HSLhsl(298, 44%, 54%)
HSVhsv(298, 54%, 74%)
CMYKcmyk(1.6%, 54%, 0%, 25.9%)
CIE-LABlab(52.87, 53.99, -36.01)
CIE-LCHlch(52.87, 64.89, 326.30°)
OKLaboklab(61.63% 0.149 -0.0992)
OKLCHoklch(61.63% 0.179 326.3)
XYZxyz(32.8426, 20.9315, 50.4445)
Luminance0.2093 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57BD #5ABD57
analogous
#8757BD #BA57BD #BD578D
triadic
#BA57BD #BDBA57 #57BDBA
tetradic
#BA57BD #BD8757 #5ABD57 #578DBD
square
#BA57BD #BD8757 #5ABD57 #578DBD
split-complementary
#BA57BD #8DBD57 #57BD87
monochromatic
#6C2B6E #973D9A #BA57BD #CC83CE #DEAFE0

Accessibility & contrast

On white

4.05
#BA57BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#BA57BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57BD
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57BD#FFFFFF#000000##000000
##BA57BD1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B76C0
Deuteranopia (green-blind)
#6B83BA
Tritanopia (blue-blind)
#BF6382
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba57bd;
/* rgb */ color: rgb(186, 87, 189);
/* oklch */ color: oklch(61.6% 0.179 326.3);
Tailwind
colors: {
  custom: {
    50: '#d18bd1',
    500: '#ba57bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba57bd;
$custom-light: #d18bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57bd",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 189
  },
  "hsl": {
    "h": 298.235,
    "s": 43.59,
    "l": 54.118
  },
  "oklch": {
    "l": 0.61633,
    "c": 0.17901,
    "h": 326.3
  },
  "luminance": 0.2093
}

Semantic roles & 50–950 ramp

primary
#BA57BD
secondary
#A3CEA2
accent
#D35458
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA57BD

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

Preview Lab → · Contrast checker → · Palette generator →

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