#BA57CE#BA57CE

#BA57CE is a light, vivid purple. Relative luminance 0.217; OKLCH L 62.5% C 0.195 H 320.6°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#BA57CE
RGBrgb(186, 87, 206)
HSLhsl(290, 55%, 57%)
HSVhsv(290, 58%, 81%)
CMYKcmyk(9.7%, 57.8%, 0%, 19.2%)
CIE-LABlab(53.72, 57.17, -44.43)
CIE-LCHlch(53.72, 72.40, 322.15°)
OKLaboklab(62.53% 0.1506 -0.1236)
OKLCHoklch(62.53% 0.195 320.6)
XYZxyz(34.7972, 21.7133, 60.7387)
Luminance0.2171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57CE #6BCE57
analogous
#7F57CE #BA57CE #CE57A7
triadic
#BA57CE #CEBA57 #57CEBA
tetradic
#BA57CE #CE7F57 #6BCE57 #57A7CE
square
#BA57CE #CE7F57 #6BCE57 #57A7CE
split-complementary
#BA57CE #A7CE57 #57CE7F
monochromatic
#742784 #9E34B3 #BA57CE #CD86DC #E1B6EA

Accessibility & contrast

On white

3.93
#BA57CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#BA57CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57CE
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57CE#FFFFFF#000000##000000
##BA57CE1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E79D2
Deuteranopia (green-blind)
#6284CB
Tritanopia (blue-blind)
#BB698A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba57ce;
/* rgb */ color: rgb(186, 87, 206);
/* oklch */ color: oklch(62.5% 0.195 320.6);
Tailwind
colors: {
  custom: {
    50: '#d18bdd',
    500: '#ba57ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba57ce;
$custom-light: #d18bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57ce",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 206
  },
  "hsl": {
    "h": 289.916,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.62529,
    "c": 0.19478,
    "h": 320.6
  },
  "luminance": 0.21712
}

Semantic roles & 50–950 ramp

primary
#BA57CE
secondary
#B0D8A8
accent
#DE4A63
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA57CE

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

Preview Lab → · Contrast checker → · Palette generator →

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