#BA57DC#BA57DC

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

Color values

HEX#BA57DC
RGBrgb(186, 87, 220)
HSLhsl(285, 66%, 60%)
HSVhsv(285, 60%, 86%)
CMYKcmyk(15.5%, 60.5%, 0%, 13.7%)
CIE-LABlab(54.47, 59.91, -51.19)
CIE-LCHlch(54.47, 78.80, 319.49°)
OKLaboklab(63.32% 0.1511 -0.1433)
OKLCHoklch(63.32% 0.208 316.5)
XYZxyz(36.5742, 22.4241, 70.0980)
Luminance0.2242 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57DC #79DC57
analogous
#7857DC #BA57DC #DC57BB
triadic
#BA57DC #DCBA57 #57DCBA
tetradic
#BA57DC #DC7857 #79DC57 #57BBDC
square
#BA57DC #DC7857 #79DC57 #57BBDC
split-complementary
#BA57DC #BBDC57 #57DC78
monochromatic
#7A2099 #A22ACB #BA57DC #CF8AE7 #E4BCF1

Accessibility & contrast

On white

3.83
#BA57DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#BA57DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57DC
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57DC#FFFFFF#000000##000000
##BA57DC1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F7CE0
Deuteranopia (green-blind)
#5985D9
Tritanopia (blue-blind)
#B86E92
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba57dc;
/* rgb */ color: rgb(186, 87, 220);
/* oklch */ color: oklch(63.3% 0.208 316.5);
Tailwind
colors: {
  custom: {
    50: '#d28ce7',
    500: '#ba57dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba57dc;
$custom-light: #d28ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57dc",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 284.662,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.6332,
    "c": 0.20821,
    "h": 316.5
  },
  "luminance": 0.22423
}

Semantic roles & 50–950 ramp

primary
#BA57DC
secondary
#BBE1AE
accent
#CD1846
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA57DC

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

Preview Lab → · Contrast checker → · Palette generator →

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