#BA57A2#BA57A2

#BA57A2 is a mid, vivid pink. Relative luminance 0.199; OKLCH L 60.4% C 0.156 H 337.5°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA57A2
RGBrgb(186, 87, 162)
HSLhsl(315, 42%, 54%)
HSVhsv(315, 53%, 73%)
CMYKcmyk(0%, 53.2%, 12.9%, 27.1%)
CIE-LABlab(51.69, 49.36, -22.13)
CIE-LCHlch(51.69, 54.10, 335.85°)
OKLaboklab(60.37% 0.1444 -0.0597)
OKLCHoklch(60.37% 0.156 337.5)
XYZxyz(30.1798, 19.8663, 36.4205)
Luminance0.1986 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57A2 #57BA6F
analogous
#A057BA #BA57A2 #BA5770
triadic
#BA57A2 #A2BA57 #57A2BA
tetradic
#BA57A2 #BAA057 #57BA6F #5770BA
square
#BA57A2 #BAA057 #57BA6F #5770BA
split-complementary
#BA57A2 #70BA57 #57BAA0
monochromatic
#6B2C5C #963E81 #BA57A2 #CC82BA #DEAED2

Accessibility & contrast

On white

4.22
#BA57A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#BA57A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57A2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57A2#FFFFFF#000000##000000
##BA57A21.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A72A4
Deuteranopia (green-blind)
#76819F
Tritanopia (blue-blind)
#C35B75
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba57a2;
/* rgb */ color: rgb(186, 87, 162);
/* oklch */ color: oklch(60.4% 0.156 337.5);
Tailwind
colors: {
  custom: {
    50: '#d18abd',
    500: '#ba57a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba57a2;
$custom-light: #d18abd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57a2",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 162
  },
  "hsl": {
    "h": 314.545,
    "s": 41.772,
    "l": 53.529
  },
  "oklch": {
    "l": 0.60367,
    "c": 0.15622,
    "h": 337.5
  },
  "luminance": 0.19864
}

Semantic roles & 50–950 ramp

primary
#BA57A2
secondary
#A1CCAB
accent
#D27456
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA57A2

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

Preview Lab → · Contrast checker → · Palette generator →

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