#BA56DB#BA56DB

#BA56DB is a light, highly saturated purple. Relative luminance 0.222; OKLCH L 63.1% C 0.209 H 316.9°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#BA56DB
RGBrgb(186, 86, 219)
HSLhsl(285, 65%, 60%)
HSVhsv(285, 61%, 86%)
CMYKcmyk(15.1%, 60.7%, 0%, 14.1%)
CIE-LABlab(54.25, 60.17, -50.98)
CIE-LCHlch(54.25, 78.86, 319.73°)
OKLaboklab(63.14% 0.1523 -0.1426)
OKLCHoklch(63.14% 0.209 316.9)
XYZxyz(36.3618, 22.2105, 69.3758)
Luminance0.2221 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56DB #77DB56
analogous
#7856DB #BA56DB #DB56B9
triadic
#BA56DB #DBBA56 #56DBBA
tetradic
#BA56DB #DB7856 #77DB56 #56B9DB
square
#BA56DB #DB7856 #77DB56 #56B9DB
split-complementary
#BA56DB #B9DB56 #56DB78
monochromatic
#792097 #A22BC9 #BA56DB #CF88E6 #E3BBF0

Accessibility & contrast

On white

3.86
#BA56DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#BA56DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56DB
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56DB#FFFFFF#000000##000000
##BA56DB1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E7BDF
Deuteranopia (green-blind)
#5985D8
Tritanopia (blue-blind)
#B96D91
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba56db;
/* rgb */ color: rgb(186, 86, 219);
/* oklch */ color: oklch(63.1% 0.209 316.9);
Tailwind
colors: {
  custom: {
    50: '#d28be7',
    500: '#ba56db',
    950: '#000000',
  },
}
SCSS
$custom: #ba56db;
$custom-light: #d28be7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56db",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 285.113,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.6314,
    "c": 0.20866,
    "h": 316.9
  },
  "luminance": 0.22209
}

Semantic roles & 50–950 ramp

primary
#BA56DB
secondary
#B9E0AD
accent
#E8406A
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA56DB

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

Preview Lab → · Contrast checker → · Palette generator →

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