#BA57E8#BA57E8

#BA57E8 is a light, highly saturated purple. Relative luminance 0.231; OKLCH L 64.0% C 0.220 H 313.4°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#BA57E8
RGBrgb(186, 87, 232)
HSLhsl(281, 76%, 63%)
HSVhsv(281, 63%, 91%)
CMYKcmyk(19.8%, 62.5%, 0%, 9%)
CIE-LABlab(55.16, 62.34, -56.86)
CIE-LCHlch(55.16, 84.37, 317.63°)
OKLaboklab(64.04% 0.151 -0.1598)
OKLCHoklch(64.04% 0.22 313.4)
XYZxyz(38.2209, 23.0828, 78.7703)
Luminance0.2308 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57E8 #85E857
analogous
#7257E8 #BA57E8 #E857CD
triadic
#BA57E8 #E8BA57 #57E8BA
tetradic
#BA57E8 #E87257 #85E857 #57CDE8
square
#BA57E8 #E87257 #85E857 #57CDE8
split-complementary
#BA57E8 #CDE857 #57E872
monochromatic
#7E18AD #A421E1 #BA57E8 #D08DEF #E6C3F7

Accessibility & contrast

On white

3.74
#BA57E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#BA57E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57E8
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57E8#FFFFFF#000000##000000
##BA57E81.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#197FEC
Deuteranopia (green-blind)
#4F86E5
Tritanopia (blue-blind)
#B57298
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba57e8;
/* rgb */ color: rgb(186, 87, 232);
/* oklch */ color: oklch(64.0% 0.220 313.4);
Tailwind
colors: {
  custom: {
    50: '#d28cf0',
    500: '#ba57e8',
    950: '#000000',
  },
}
SCSS
$custom: #ba57e8;
$custom-light: #d28cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57e8",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 232
  },
  "hsl": {
    "h": 280.966,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.64036,
    "c": 0.21991,
    "h": 313.4
  },
  "luminance": 0.23082
}

Semantic roles & 50–950 ramp

primary
#BA57E8
secondary
#C4E8B3
accent
#D80D4E
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA57E8

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

Preview Lab → · Contrast checker → · Palette generator →

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