#BA57DB#BA57DB

#BA57DB is a light, highly saturated purple. Relative luminance 0.224; OKLCH L 63.3% C 0.207 H 316.8°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#BA57DB
RGBrgb(186, 87, 219)
HSLhsl(285, 65%, 60%)
HSVhsv(285, 60%, 86%)
CMYKcmyk(15.1%, 60.3%, 0%, 14.1%)
CIE-LABlab(54.42, 59.71, -50.71)
CIE-LCHlch(54.42, 78.34, 319.66°)
OKLaboklab(63.26% 0.1511 -0.1419)
OKLCHoklch(63.26% 0.207 316.8)
XYZxyz(36.4422, 22.3713, 69.4026)
Luminance0.2237 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57DB #78DB57
analogous
#7857DB #BA57DB #DB57BA
triadic
#BA57DB #DBBA57 #57DBBA
tetradic
#BA57DB #DB7857 #78DB57 #57BADB
square
#BA57DB #DB7857 #78DB57 #57BADB
split-complementary
#BA57DB #BADB57 #57DB78
monochromatic
#7A2097 #A22BCA #BA57DB #CF89E6 #E3BCF1

Accessibility & contrast

On white

3.84
#BA57DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#BA57DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57DB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57DB#FFFFFF#000000##000000
##BA57DB1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#307CDF
Deuteranopia (green-blind)
#5985D8
Tritanopia (blue-blind)
#B96E91
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba57db;
/* rgb */ color: rgb(186, 87, 219);
/* oklch */ color: oklch(63.3% 0.207 316.8);
Tailwind
colors: {
  custom: {
    50: '#d28ce7',
    500: '#ba57db',
    950: '#000000',
  },
}
SCSS
$custom: #ba57db;
$custom-light: #d28ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57db",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 285,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.63262,
    "c": 0.20725,
    "h": 316.8
  },
  "luminance": 0.2237
}

Semantic roles & 50–950 ramp

primary
#BA57DB
secondary
#BAE0AD
accent
#E8406A
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA57DB

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

Preview Lab → · Contrast checker → · Palette generator →

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