#BA57BB#BA57BB

#BA57BB is a mid, vivid purple. Relative luminance 0.208; OKLCH L 61.5% C 0.177 H 327.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BA57BB
RGBrgb(186, 87, 187)
HSLhsl(299, 42%, 54%)
HSVhsv(299, 53%, 73%)
CMYKcmyk(0.5%, 53.5%, 0%, 26.7%)
CIE-LABlab(52.78, 53.63, -35.00)
CIE-LCHlch(52.78, 64.04, 326.87°)
OKLaboklab(61.53% 0.1488 -0.0963)
OKLCHoklch(61.53% 0.177 327.1)
XYZxyz(32.6270, 20.8452, 49.3091)
Luminance0.2084 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57BB #58BB57
analogous
#8857BB #BA57BB #BB578A
triadic
#BA57BB #BBBA57 #57BBBA
tetradic
#BA57BB #BB8857 #58BB57 #578ABB
square
#BA57BB #BB8857 #58BB57 #578ABB
split-complementary
#BA57BB #8ABB57 #57BB88
monochromatic
#6B2C6C #973D97 #BA57BB #CC83CD #DEAEDE

Accessibility & contrast

On white

4.06
#BA57BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#BA57BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57BB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57BB#FFFFFF#000000##000000
##BA57BB1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D76BE
Deuteranopia (green-blind)
#6C83B8
Tritanopia (blue-blind)
#BF6381
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba57bb;
/* rgb */ color: rgb(186, 87, 187);
/* oklch */ color: oklch(61.5% 0.177 327.1);
Tailwind
colors: {
  custom: {
    50: '#d18bd0',
    500: '#ba57bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba57bb;
$custom-light: #d18bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57bb",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 299.4,
    "s": 42.373,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61533,
    "c": 0.17721,
    "h": 327.1
  },
  "luminance": 0.20843
}

Semantic roles & 50–950 ramp

primary
#BA57BB
secondary
#A2CCA2
accent
#D25657
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA57BB

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

Preview Lab → · Contrast checker → · Palette generator →

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