#BA57BF#BA57BF

#BA57BF is a mid, vivid purple. Relative luminance 0.210; OKLCH L 61.7% C 0.181 H 325.6°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#BA57BF
RGBrgb(186, 87, 191)
HSLhsl(297, 45%, 55%)
HSVhsv(297, 54%, 75%)
CMYKcmyk(2.6%, 54.5%, 0%, 25.1%)
CIE-LABlab(52.97, 54.35, -37.01)
CIE-LCHlch(52.97, 65.76, 325.75°)
OKLaboklab(61.73% 0.1493 -0.1021)
OKLCHoklch(61.73% 0.181 325.6)
XYZxyz(33.0612, 21.0189, 51.5957)
Luminance0.2102 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57BF #5CBF57
analogous
#8657BF #BA57BF #BF5790
triadic
#BA57BF #BFBA57 #57BFBA
tetradic
#BA57BF #BF8657 #5CBF57 #5790BF
square
#BA57BF #BF8657 #5CBF57 #5790BF
split-complementary
#BA57BF #90BF57 #57BF86
monochromatic
#6D2B71 #983C9D #BA57BF #CC83D0 #DEB0E1

Accessibility & contrast

On white

4.04
#BA57BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#BA57BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57BF
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57BF#FFFFFF#000000##000000
##BA57BF1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A77C2
Deuteranopia (green-blind)
#6A83BC
Tritanopia (blue-blind)
#BE6483
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba57bf;
/* rgb */ color: rgb(186, 87, 191);
/* oklch */ color: oklch(61.7% 0.181 325.6);
Tailwind
colors: {
  custom: {
    50: '#d18bd2',
    500: '#ba57bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba57bf;
$custom-light: #d18bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57bf",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 297.115,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.61735,
    "c": 0.18083,
    "h": 325.6
  },
  "luminance": 0.21017
}

Semantic roles & 50–950 ramp

primary
#BA57BF
secondary
#A5CFA3
accent
#D55359
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA57BF

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

Preview Lab → · Contrast checker → · Palette generator →

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