#BA57BE#BA57BE

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

Color values

HEX#BA57BE
RGBrgb(186, 87, 190)
HSLhsl(298, 44%, 54%)
HSVhsv(298, 54%, 75%)
CMYKcmyk(2.1%, 54.2%, 0%, 25.5%)
CIE-LABlab(52.92, 54.17, -36.51)
CIE-LCHlch(52.92, 65.33, 326.02°)
OKLaboklab(61.68% 0.1491 -0.1006)
OKLCHoklch(61.68% 0.18 326)
XYZxyz(32.9515, 20.9750, 51.0182)
Luminance0.2097 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57BE #5BBE57
analogous
#8757BE #BA57BE #BE578F
triadic
#BA57BE #BEBA57 #57BEBA
tetradic
#BA57BE #BE8757 #5BBE57 #578FBE
square
#BA57BE #BE8757 #5BBE57 #578FBE
split-complementary
#BA57BE #8FBE57 #57BE87
monochromatic
#6D2B6F #983C9C #BA57BE #CC83CF #DEAFE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA57BE#FFFFFF#000000##000000
##BA57BE1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B76C1
Deuteranopia (green-blind)
#6A83BB
Tritanopia (blue-blind)
#BE6482
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba57be;
/* rgb */ color: rgb(186, 87, 190);
/* oklch */ color: oklch(61.7% 0.180 326.0);
Tailwind
colors: {
  custom: {
    50: '#d18bd2',
    500: '#ba57be',
    950: '#000000',
  },
}
SCSS
$custom: #ba57be;
$custom-light: #d18bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57be",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 190
  },
  "hsl": {
    "h": 297.67,
    "s": 44.206,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61684,
    "c": 0.17991,
    "h": 326
  },
  "luminance": 0.20973
}

Semantic roles & 50–950 ramp

primary
#BA57BE
secondary
#A4CEA3
accent
#D45459
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA57BE

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

Preview Lab → · Contrast checker → · Palette generator →

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