#BA57DD#BA57DD

#BA57DD is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 63.4% C 0.209 H 316.3°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#BA57DD
RGBrgb(186, 87, 221)
HSLhsl(284, 66%, 60%)
HSVhsv(284, 61%, 87%)
CMYKcmyk(15.8%, 60.6%, 0%, 13.3%)
CIE-LABlab(54.53, 60.11, -51.66)
CIE-LCHlch(54.53, 79.26, 319.32°)
OKLaboklab(63.38% 0.1511 -0.1446)
OKLCHoklch(63.38% 0.209 316.3)
XYZxyz(36.7071, 22.4773, 70.7975)
Luminance0.2248 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57DD #7ADD57
analogous
#7757DD #BA57DD #DD57BD
triadic
#BA57DD #DDBA57 #57DDBA
tetradic
#BA57DD #DD7757 #7ADD57 #57BDDD
square
#BA57DD #DD7757 #7ADD57 #57BDDD
split-complementary
#BA57DD #BDDD57 #57DD77
monochromatic
#7A1F9A #A22ACD #BA57DD #CF8AE7 #E4BDF2

Accessibility & contrast

On white

3.82
#BA57DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#BA57DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57DD
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57DD#FFFFFF#000000##000000
##BA57DD1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E7CE1
Deuteranopia (green-blind)
#5885DA
Tritanopia (blue-blind)
#B86E92
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba57dd;
/* rgb */ color: rgb(186, 87, 221);
/* oklch */ color: oklch(63.4% 0.209 316.3);
Tailwind
colors: {
  custom: {
    50: '#d28ce8',
    500: '#ba57dd',
    950: '#000000',
  },
}
SCSS
$custom: #ba57dd;
$custom-light: #d28ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57dd",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 221
  },
  "hsl": {
    "h": 284.328,
    "s": 66.337,
    "l": 60.392
  },
  "oklch": {
    "l": 0.63379,
    "c": 0.20918,
    "h": 316.3
  },
  "luminance": 0.22476
}

Semantic roles & 50–950 ramp

primary
#BA57DD
secondary
#BCE1AE
accent
#CE1747
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA57DD

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

Preview Lab → · Contrast checker → · Palette generator →

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