#BA54EA#BA54EA

#BA54EA is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 63.8% C 0.226 H 313.1°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#BA54EA
RGBrgb(186, 84, 234)
HSLhsl(281, 78%, 62%)
HSVhsv(281, 64%, 92%)
CMYKcmyk(20.5%, 64.1%, 0%, 8.2%)
CIE-LABlab(54.78, 64.10, -58.58)
CIE-LCHlch(54.78, 86.84, 317.58°)
OKLaboklab(63.8% 0.1544 -0.1649)
OKLCHoklch(63.8% 0.226 313.1)
XYZxyz(38.2687, 22.7214, 80.1957)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54EA #84EA54
analogous
#6F54EA #BA54EA #EA54CF
triadic
#BA54EA #EABA54 #54EABA
tetradic
#BA54EA #EA6F54 #84EA54 #54CFEA
square
#BA54EA #EA6F54 #84EA54 #54CFEA
split-complementary
#BA54EA #CFEA54 #54EA6F
monochromatic
#7D15AE #A41DE3 #BA54EA #D08BF1 #E6C1F7

Accessibility & contrast

On white

3.79
#BA54EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#BA54EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54EA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54EA#FFFFFF#000000##000000
##BA54EA1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EEF
Deuteranopia (green-blind)
#4A85E6
Tritanopia (blue-blind)
#B57198
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba54ea;
/* rgb */ color: rgb(186, 84, 234);
/* oklch */ color: oklch(63.8% 0.226 313.1);
Tailwind
colors: {
  custom: {
    50: '#d38af1',
    500: '#ba54ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba54ea;
$custom-light: #d38af1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54ea",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 234
  },
  "hsl": {
    "h": 280.8,
    "s": 78.125,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63804,
    "c": 0.22585,
    "h": 313.1
  },
  "luminance": 0.2272
}

Semantic roles & 50–950 ramp

primary
#BA54EA
secondary
#C3E8B2
accent
#DA0B4D
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA54EA

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

Preview Lab → · Contrast checker → · Palette generator →

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