#BA57E9#BA57E9

#BA57E9 is a light, highly saturated purple. Relative luminance 0.231; OKLCH L 64.1% C 0.221 H 313.1°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#BA57E9
RGBrgb(186, 87, 233)
HSLhsl(281, 77%, 63%)
HSVhsv(281, 63%, 91%)
CMYKcmyk(20.2%, 62.7%, 0%, 8.6%)
CIE-LABlab(55.22, 62.55, -57.32)
CIE-LCHlch(55.22, 84.84, 317.50°)
OKLaboklab(64.1% 0.151 -0.1612)
OKLCHoklch(64.1% 0.221 313.1)
XYZxyz(38.3633, 23.1398, 79.5205)
Luminance0.2314 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57E9 #86E957
analogous
#7157E9 #BA57E9 #E957CF
triadic
#BA57E9 #E9BA57 #57E9BA
tetradic
#BA57E9 #E97157 #86E957 #57CFE9
square
#BA57E9 #E97157 #86E957 #57CFE9
split-complementary
#BA57E9 #CFE957 #57E971
monochromatic
#7E17AF #A421E2 #BA57E9 #D08DF0 #E6C3F7

Accessibility & contrast

On white

3.73
#BA57E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#BA57E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57E9
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57E9#FFFFFF#000000##000000
##BA57E91.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#167FED
Deuteranopia (green-blind)
#4E86E6
Tritanopia (blue-blind)
#B57398
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba57e9;
/* rgb */ color: rgb(186, 87, 233);
/* oklch */ color: oklch(64.1% 0.221 313.1);
Tailwind
colors: {
  custom: {
    50: '#d28cf1',
    500: '#ba57e9',
    950: '#000000',
  },
}
SCSS
$custom: #ba57e9;
$custom-light: #d28cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57e9",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 233
  },
  "hsl": {
    "h": 280.685,
    "s": 76.842,
    "l": 62.745
  },
  "oklch": {
    "l": 0.64097,
    "c": 0.22089,
    "h": 313.1
  },
  "luminance": 0.23139
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA57E9

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

Preview Lab → · Contrast checker → · Palette generator →

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