#BA56EB#BA56EB

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

Color values

HEX#BA56EB
RGBrgb(186, 86, 235)
HSLhsl(280, 79%, 63%)
HSVhsv(280, 63%, 92%)
CMYKcmyk(20.9%, 63.4%, 0%, 7.8%)
CIE-LABlab(55.17, 63.41, -58.52)
CIE-LCHlch(55.17, 86.29, 317.30°)
OKLaboklab(64.1% 0.1521 -0.1647)
OKLCHoklch(64.1% 0.224 312.7)
XYZxyz(38.5702, 23.0939, 81.0069)
Luminance0.2309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56EB #87EB56
analogous
#6F56EB #BA56EB #EB56D2
triadic
#BA56EB #EBBA56 #56EBBA
tetradic
#BA56EB #EB6F56 #87EB56 #56D2EB
square
#BA56EB #EB6F56 #87EB56 #56D2EB
split-complementary
#BA56EB #D2EB56 #56EB6F
monochromatic
#7E15B2 #A41FE5 #BA56EB #D08DF1 #E7C3F8

Accessibility & contrast

On white

3.74
#BA56EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#BA56EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56EB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56EB#FFFFFF#000000##000000
##BA56EB1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#087FF0
Deuteranopia (green-blind)
#4B86E8
Tritanopia (blue-blind)
#B57399
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba56eb;
/* rgb */ color: rgb(186, 86, 235);
/* oklch */ color: oklch(64.1% 0.224 312.7);
Tailwind
colors: {
  custom: {
    50: '#d38cf2',
    500: '#ba56eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba56eb;
$custom-light: #d38cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56eb",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 280.268,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.64101,
    "c": 0.22418,
    "h": 312.7
  },
  "luminance": 0.23093
}

Semantic roles & 50–950 ramp

primary
#BA56EB
secondary
#C5E9B4
accent
#DB0A4F
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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