#BA57D1#BA57D1

#BA57D1 is a light, vivid purple. Relative luminance 0.219; OKLCH L 62.7% C 0.198 H 319.7°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#BA57D1
RGBrgb(186, 87, 209)
HSLhsl(289, 57%, 58%)
HSVhsv(289, 58%, 82%)
CMYKcmyk(11%, 58.4%, 0%, 18%)
CIE-LABlab(53.88, 57.74, -45.89)
CIE-LCHlch(53.88, 73.76, 321.52°)
OKLaboklab(62.7% 0.1507 -0.1278)
OKLCHoklch(62.7% 0.198 319.7)
XYZxyz(35.1651, 21.8605, 62.6764)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57D1 #6ED157
analogous
#7D57D1 #BA57D1 #D157AB
triadic
#BA57D1 #D1BA57 #57D1BA
tetradic
#BA57D1 #D17D57 #6ED157 #57ABD1
square
#BA57D1 #D17D57 #6ED157 #57ABD1
split-complementary
#BA57D1 #ABD157 #57D17D
monochromatic
#762588 #9F32B8 #BA57D1 #CE87DE #E1B7EB

Accessibility & contrast

On white

3.91
#BA57D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#BA57D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57D1
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57D1#FFFFFF#000000##000000
##BA57D11.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7AD5
Deuteranopia (green-blind)
#6084CE
Tritanopia (blue-blind)
#BB6A8C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba57d1;
/* rgb */ color: rgb(186, 87, 209);
/* oklch */ color: oklch(62.7% 0.198 319.7);
Tailwind
colors: {
  custom: {
    50: '#d28bdf',
    500: '#ba57d1',
    950: '#000000',
  },
}
SCSS
$custom: #ba57d1;
$custom-light: #d28bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57d1",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 209
  },
  "hsl": {
    "h": 288.689,
    "s": 57.009,
    "l": 58.039
  },
  "oklch": {
    "l": 0.62695,
    "c": 0.19764,
    "h": 319.7
  },
  "luminance": 0.21859
}

Semantic roles & 50–950 ramp

primary
#BA57D1
secondary
#B3DAAA
accent
#E04864
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA57D1

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

Preview Lab → · Contrast checker → · Palette generator →

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