#BA54E9#BA54E9

#BA54E9 is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 63.7% C 0.225 H 313.4°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#BA54E9
RGBrgb(186, 84, 233)
HSLhsl(281, 77%, 62%)
HSVhsv(281, 64%, 91%)
CMYKcmyk(20.2%, 63.9%, 0%, 8.6%)
CIE-LABlab(54.72, 63.90, -58.11)
CIE-LCHlch(54.72, 86.37, 317.72°)
OKLaboklab(63.74% 0.1544 -0.1635)
OKLCHoklch(63.74% 0.225 313.4)
XYZxyz(38.1255, 22.6641, 79.4412)
Luminance0.2266 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54E9 #83E954
analogous
#7054E9 #BA54E9 #E954CD
triadic
#BA54E9 #E9BA54 #54E9BA
tetradic
#BA54E9 #E97054 #83E954 #54CDE9
square
#BA54E9 #E97054 #83E954 #54CDE9
split-complementary
#BA54E9 #CDE954 #54E970
monochromatic
#7D16AC #A41EE2 #BA54E9 #D08AF0 #E6C0F7

Accessibility & contrast

On white

3.80
#BA54E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#BA54E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54E9
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54E9#FFFFFF#000000##000000
##BA54E91.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#047DEE
Deuteranopia (green-blind)
#4B85E6
Tritanopia (blue-blind)
#B57197
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba54e9;
/* rgb */ color: rgb(186, 84, 233);
/* oklch */ color: oklch(63.7% 0.225 313.4);
Tailwind
colors: {
  custom: {
    50: '#d38af1',
    500: '#ba54e9',
    950: '#000000',
  },
}
SCSS
$custom: #ba54e9;
$custom-light: #d38af1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54e9",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 233
  },
  "hsl": {
    "h": 281.074,
    "s": 77.202,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63742,
    "c": 0.22489,
    "h": 313.4
  },
  "luminance": 0.22663
}

Semantic roles & 50–950 ramp

primary
#BA54E9
secondary
#C2E8B1
accent
#D90C4D
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA54E9

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

Preview Lab → · Contrast checker → · Palette generator →

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