#BA57E7#BA57E7

#BA57E7 is a light, highly saturated purple. Relative luminance 0.230; OKLCH L 64.0% C 0.219 H 313.6°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#BA57E7
RGBrgb(186, 87, 231)
HSLhsl(281, 75%, 62%)
HSVhsv(281, 62%, 91%)
CMYKcmyk(19.5%, 62.3%, 0%, 9.4%)
CIE-LABlab(55.10, 62.14, -56.39)
CIE-LCHlch(55.10, 83.91, 317.78°)
OKLaboklab(63.98% 0.1511 -0.1585)
OKLCHoklch(63.98% 0.219 313.6)
XYZxyz(38.0792, 23.0261, 78.0244)
Luminance0.2303 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57E7 #84E757
analogous
#7257E7 #BA57E7 #E757CC
triadic
#BA57E7 #E7BA57 #57E7BA
tetradic
#BA57E7 #E77257 #84E757 #57CCE7
square
#BA57E7 #E77257 #84E757 #57CCE7
split-complementary
#BA57E7 #CCE757 #57E772
monochromatic
#7D18AB #A421DF #BA57E7 #D08DEF #E6C2F6

Accessibility & contrast

On white

3.75
#BA57E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#BA57E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57E7
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57E7#FFFFFF#000000##000000
##BA57E71.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C7FEB
Deuteranopia (green-blind)
#5086E4
Tritanopia (blue-blind)
#B67297
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba57e7;
/* rgb */ color: rgb(186, 87, 231);
/* oklch */ color: oklch(64.0% 0.219 313.6);
Tailwind
colors: {
  custom: {
    50: '#d28cef',
    500: '#ba57e7',
    950: '#000000',
  },
}
SCSS
$custom: #ba57e7;
$custom-light: #d28cef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57e7",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 281.25,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63975,
    "c": 0.21893,
    "h": 313.6
  },
  "luminance": 0.23025
}

Semantic roles & 50–950 ramp

primary
#BA57E7
secondary
#C3E7B3
accent
#D70E4D
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA57E7

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

Preview Lab → · Contrast checker → · Palette generator →

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