#BA56EC#BA56EC

#BA56EC is a light, highly saturated purple. Relative luminance 0.232; OKLCH L 64.2% C 0.225 H 312.5°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#BA56EC
RGBrgb(186, 86, 236)
HSLhsl(280, 80%, 63%)
HSVhsv(280, 64%, 93%)
CMYKcmyk(21.2%, 63.6%, 0%, 7.5%)
CIE-LABlab(55.23, 63.62, -58.98)
CIE-LCHlch(55.23, 86.76, 317.17°)
OKLaboklab(64.16% 0.152 -0.1661)
OKLCHoklch(64.16% 0.225 312.5)
XYZxyz(38.7151, 23.1518, 81.7699)
Luminance0.2315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56EC #88EC56
analogous
#6F56EC #BA56EC #EC56D3
triadic
#BA56EC #ECBA56 #56ECBA
tetradic
#BA56EC #EC6F56 #88EC56 #56D3EC
square
#BA56EC #EC6F56 #88EC56 #56D3EC
split-complementary
#BA56EC #D3EC56 #56EC6F
monochromatic
#7E14B3 #A41FE6 #BA56EC #D08DF2 #E7C4F8

Accessibility & contrast

On white

3.73
#BA56EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#BA56EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56EC
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56EC#FFFFFF#000000##000000
##BA56EC1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#037FF1
Deuteranopia (green-blind)
#4A86E8
Tritanopia (blue-blind)
#B5739A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba56ec;
/* rgb */ color: rgb(186, 86, 236);
/* oklch */ color: oklch(64.2% 0.225 312.5);
Tailwind
colors: {
  custom: {
    50: '#d38cf3',
    500: '#ba56ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba56ec;
$custom-light: #d38cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56ec",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 280,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.64163,
    "c": 0.22516,
    "h": 312.5
  },
  "luminance": 0.23151
}

Semantic roles & 50–950 ramp

primary
#BA56EC
secondary
#C6EAB4
accent
#DC0950
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA56EC

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

Preview Lab → · Contrast checker → · Palette generator →

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