#BA56E9#BA56E9

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

Color values

HEX#BA56E9
RGBrgb(186, 86, 233)
HSLhsl(281, 77%, 63%)
HSVhsv(281, 63%, 91%)
CMYKcmyk(20.2%, 63.1%, 0%, 8.6%)
CIE-LABlab(55.05, 63.00, -57.59)
CIE-LCHlch(55.05, 85.36, 317.57°)
OKLaboklab(63.98% 0.1522 -0.162)
OKLCHoklch(63.98% 0.222 313.2)
XYZxyz(38.2829, 22.9790, 79.4937)
Luminance0.2298 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56E9 #85E956
analogous
#7056E9 #BA56E9 #E956CF
triadic
#BA56E9 #E9BA56 #56E9BA
tetradic
#BA56E9 #E97056 #85E956 #56CFE9
square
#BA56E9 #E97056 #85E956 #56CFE9
split-complementary
#BA56E9 #CFE956 #56E970
monochromatic
#7E17AE #A420E2 #BA56E9 #D08CF0 #E6C2F7

Accessibility & contrast

On white

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

On black

5.60
#BA56E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56E9
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56E9#FFFFFF#000000##000000
##BA56E91.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#117EED
Deuteranopia (green-blind)
#4D86E6
Tritanopia (blue-blind)
#B57298
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba56e9;
/* rgb */ color: rgb(186, 86, 233);
/* oklch */ color: oklch(64.0% 0.222 313.2);
Tailwind
colors: {
  custom: {
    50: '#d28bf1',
    500: '#ba56e9',
    950: '#000000',
  },
}
SCSS
$custom: #ba56e9;
$custom-light: #d28bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56e9",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 233
  },
  "hsl": {
    "h": 280.816,
    "s": 76.963,
    "l": 62.549
  },
  "oklch": {
    "l": 0.63977,
    "c": 0.22223,
    "h": 313.2
  },
  "luminance": 0.22978
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA56E9

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

Preview Lab → · Contrast checker → · Palette generator →

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