#BA57C8#BA57C8

#BA57C8 is a light, vivid purple. Relative luminance 0.214; OKLCH L 62.2% C 0.189 H 322.5°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#BA57C8
RGBrgb(186, 87, 200)
HSLhsl(293, 51%, 56%)
HSVhsv(293, 57%, 78%)
CMYKcmyk(7%, 56.5%, 0%, 21.6%)
CIE-LABlab(53.41, 56.02, -41.48)
CIE-LCHlch(53.41, 69.71, 323.48°)
OKLaboklab(62.2% 0.1501 -0.115)
OKLCHoklch(62.2% 0.189 322.5)
XYZxyz(34.0822, 21.4273, 56.9730)
Luminance0.2143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57C8 #65C857
analogous
#8257C8 #BA57C8 #C8579E
triadic
#BA57C8 #C8BA57 #57C8BA
tetradic
#BA57C8 #C88257 #65C857 #579EC8
square
#BA57C8 #C88257 #65C857 #579EC8
split-complementary
#BA57C8 #9EC857 #57C882
monochromatic
#72297C #9C38AA #BA57C8 #CD85D7 #E0B3E6

Accessibility & contrast

On white

3.97
#BA57C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#BA57C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57C8
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57C8#FFFFFF#000000##000000
##BA57C81.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4378CC
Deuteranopia (green-blind)
#6584C5
Tritanopia (blue-blind)
#BD6787
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba57c8;
/* rgb */ color: rgb(186, 87, 200);
/* oklch */ color: oklch(62.2% 0.189 322.5);
Tailwind
colors: {
  custom: {
    50: '#d18bd9',
    500: '#ba57c8',
    950: '#000000',
  },
}
SCSS
$custom: #ba57c8;
$custom-light: #d18bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57c8",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 292.566,
    "s": 50.673,
    "l": 56.275
  },
  "oklch": {
    "l": 0.62204,
    "c": 0.18913,
    "h": 322.5
  },
  "luminance": 0.21426
}

Semantic roles & 50–950 ramp

primary
#BA57C8
secondary
#ACD5A6
accent
#DA4E5F
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA57C8

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

Preview Lab → · Contrast checker → · Palette generator →

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