#BA57DF#BA57DF

#BA57DF is a light, highly saturated purple. Relative luminance 0.226; OKLCH L 63.5% C 0.211 H 315.7°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#BA57DF
RGBrgb(186, 87, 223)
HSLhsl(284, 68%, 61%)
HSVhsv(284, 61%, 87%)
CMYKcmyk(16.6%, 61%, 0%, 12.5%)
CIE-LABlab(54.64, 60.51, -52.62)
CIE-LCHlch(54.64, 80.19, 318.99°)
OKLaboklab(63.5% 0.1511 -0.1474)
OKLCHoklch(63.5% 0.211 315.7)
XYZxyz(36.9751, 22.5845, 72.2093)
Luminance0.2258 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57DF #7CDF57
analogous
#7657DF #BA57DF #DF57C0
triadic
#BA57DF #DFBA57 #57DFBA
tetradic
#BA57DF #DF7657 #7CDF57 #57C0DF
square
#BA57DF #DF7657 #7CDF57 #57C0DF
split-complementary
#BA57DF #C0DF57 #57DF76
monochromatic
#7B1E9E #A328D1 #BA57DF #CF8AE9 #E4BEF3

Accessibility & contrast

On white

3.81
#BA57DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#BA57DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57DF
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57DF#FFFFFF#000000##000000
##BA57DF1.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7DE3
Deuteranopia (green-blind)
#5686DC
Tritanopia (blue-blind)
#B86F93
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba57df;
/* rgb */ color: rgb(186, 87, 223);
/* oklch */ color: oklch(63.5% 0.211 315.7);
Tailwind
colors: {
  custom: {
    50: '#d28ce9',
    500: '#ba57df',
    950: '#000000',
  },
}
SCSS
$custom: #ba57df;
$custom-light: #d28ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57df",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 223
  },
  "hsl": {
    "h": 283.676,
    "s": 68,
    "l": 60.784
  },
  "oklch": {
    "l": 0.63496,
    "c": 0.21112,
    "h": 315.7
  },
  "luminance": 0.22583
}

Semantic roles & 50–950 ramp

primary
#BA57DF
secondary
#BDE3AF
accent
#D01648
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA57DF

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

Preview Lab → · Contrast checker → · Palette generator →

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