#BA57CF#BA57CF

#BA57CF is a light, vivid purple. Relative luminance 0.218; OKLCH L 62.6% C 0.196 H 320.3°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#BA57CF
RGBrgb(186, 87, 207)
HSLhsl(290, 56%, 58%)
HSVhsv(290, 58%, 81%)
CMYKcmyk(10.1%, 58%, 0%, 18.8%)
CIE-LABlab(53.77, 57.36, -44.92)
CIE-LCHlch(53.77, 72.85, 321.94°)
OKLaboklab(62.58% 0.1506 -0.125)
OKLCHoklch(62.58% 0.196 320.3)
XYZxyz(34.9190, 21.7621, 61.3805)
Luminance0.2176 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57CF #6CCF57
analogous
#7E57CF #BA57CF #CF57A8
triadic
#BA57CF #CFBA57 #57CFBA
tetradic
#BA57CF #CF7E57 #6CCF57 #57A8CF
square
#BA57CF #CF7E57 #6CCF57 #57A8CF
split-complementary
#BA57CF #A8CF57 #57CF7E
monochromatic
#752685 #9E34B5 #BA57CF #CE87DD #E1B6EA

Accessibility & contrast

On white

3.92
#BA57CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#BA57CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57CF
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57CF#FFFFFF#000000##000000
##BA57CF1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D7AD3
Deuteranopia (green-blind)
#6184CC
Tritanopia (blue-blind)
#BB698B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba57cf;
/* rgb */ color: rgb(186, 87, 207);
/* oklch */ color: oklch(62.6% 0.196 320.3);
Tailwind
colors: {
  custom: {
    50: '#d18bde',
    500: '#ba57cf',
    950: '#000000',
  },
}
SCSS
$custom: #ba57cf;
$custom-light: #d18bde;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57cf",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 207
  },
  "hsl": {
    "h": 289.5,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.62584,
    "c": 0.19573,
    "h": 320.3
  },
  "luminance": 0.2176
}

Semantic roles & 50–950 ramp

primary
#BA57CF
secondary
#B1D9A9
accent
#DF4963
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA57CF

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

Preview Lab → · Contrast checker → · Palette generator →

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