#BA56EA#BA56EA

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

Color values

HEX#BA56EA
RGBrgb(186, 86, 234)
HSLhsl(281, 78%, 63%)
HSVhsv(281, 63%, 92%)
CMYKcmyk(20.5%, 63.2%, 0%, 8.2%)
CIE-LABlab(55.11, 63.21, -58.05)
CIE-LCHlch(55.11, 85.82, 317.43°)
OKLaboklab(64.04% 0.1521 -0.1633)
OKLCHoklch(64.04% 0.223 313)
XYZxyz(38.4262, 23.0363, 80.2482)
Luminance0.2303 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56EA #86EA56
analogous
#7056EA #BA56EA #EA56D0
triadic
#BA56EA #EABA56 #56EABA
tetradic
#BA56EA #EA7056 #86EA56 #56D0EA
square
#BA56EA #EA7056 #86EA56 #56D0EA
split-complementary
#BA56EA #D0EA56 #56EA70
monochromatic
#7E16B0 #A420E3 #BA56EA #D08CF1 #E6C3F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA56EA#FFFFFF#000000##000000
##BA56EA1.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)
#0D7FEF
Deuteranopia (green-blind)
#4C86E7
Tritanopia (blue-blind)
#B57299
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba56ea;
/* rgb */ color: rgb(186, 86, 234);
/* oklch */ color: oklch(64.0% 0.223 313.0);
Tailwind
colors: {
  custom: {
    50: '#d28cf1',
    500: '#ba56ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba56ea;
$custom-light: #d28cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56ea",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 234
  },
  "hsl": {
    "h": 280.541,
    "s": 77.895,
    "l": 62.745
  },
  "oklch": {
    "l": 0.64039,
    "c": 0.2232,
    "h": 313
  },
  "luminance": 0.23035
}

Semantic roles & 50–950 ramp

primary
#BA56EA
secondary
#C4E9B3
accent
#DA0B4E
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA56EA

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

Preview Lab → · Contrast checker → · Palette generator →

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