#BA57EB#BA57EB

#BA57EB is a light, highly saturated purple. Relative luminance 0.233; OKLCH L 64.2% C 0.223 H 312.6°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#BA57EB
RGBrgb(186, 87, 235)
HSLhsl(280, 79%, 63%)
HSVhsv(280, 63%, 92%)
CMYKcmyk(20.9%, 63%, 0%, 7.8%)
CIE-LABlab(55.33, 62.96, -58.26)
CIE-LCHlch(55.33, 85.78, 317.22°)
OKLaboklab(64.22% 0.151 -0.1639)
OKLCHoklch(64.22% 0.223 312.6)
XYZxyz(38.6506, 23.2547, 81.0337)
Luminance0.2325 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57EB #88EB57
analogous
#7057EB #BA57EB #EB57D2
triadic
#BA57EB #EBBA57 #57EBBA
tetradic
#BA57EB #EB7057 #88EB57 #57D2EB
square
#BA57EB #EB7057 #88EB57 #57D2EB
split-complementary
#BA57EB #D2EB57 #57EB70
monochromatic
#7E15B2 #A420E4 #BA57EB #D08EF2 #E7C4F8

Accessibility & contrast

On white

3.72
#BA57EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#BA57EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57EB
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57EB#FFFFFF#000000##000000
##BA57EB1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F7FF0
Deuteranopia (green-blind)
#4C87E8
Tritanopia (blue-blind)
#B57399
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba57eb;
/* rgb */ color: rgb(186, 87, 235);
/* oklch */ color: oklch(64.2% 0.223 312.6);
Tailwind
colors: {
  custom: {
    50: '#d28cf2',
    500: '#ba57eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba57eb;
$custom-light: #d28cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57eb",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 280.135,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.6422,
    "c": 0.22285,
    "h": 312.6
  },
  "luminance": 0.23254
}

Semantic roles & 50–950 ramp

primary
#BA57EB
secondary
#C6E9B4
accent
#DB0A50
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA57EB

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

Preview Lab → · Contrast checker → · Palette generator →

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