#BA56DC#BA56DC

#BA56DC is a light, highly saturated purple. Relative luminance 0.223; OKLCH L 63.2% C 0.210 H 316.6°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#BA56DC
RGBrgb(186, 86, 220)
HSLhsl(285, 66%, 60%)
HSVhsv(285, 61%, 86%)
CMYKcmyk(15.5%, 60.9%, 0%, 13.7%)
CIE-LABlab(54.31, 60.37, -51.46)
CIE-LCHlch(54.31, 79.32, 319.56°)
OKLaboklab(63.2% 0.1523 -0.144)
OKLCHoklch(63.2% 0.21 316.6)
XYZxyz(36.4938, 22.2633, 70.0712)
Luminance0.2226 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56DC #78DC56
analogous
#7756DC #BA56DC #DC56BB
triadic
#BA56DC #DCBA56 #56DCBA
tetradic
#BA56DC #DC7756 #78DC56 #56BBDC
square
#BA56DC #DC7756 #78DC56 #56BBDC
split-complementary
#BA56DC #BBDC56 #56DC77
monochromatic
#792098 #A22ACB #BA56DC #CF89E6 #E3BBF1

Accessibility & contrast

On white

3.85
#BA56DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#BA56DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56DC
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56DC#FFFFFF#000000##000000
##BA56DC1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D7CE0
Deuteranopia (green-blind)
#5885D9
Tritanopia (blue-blind)
#B86D91
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba56dc;
/* rgb */ color: rgb(186, 86, 220);
/* oklch */ color: oklch(63.2% 0.210 316.6);
Tailwind
colors: {
  custom: {
    50: '#d28be7',
    500: '#ba56dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba56dc;
$custom-light: #d28be7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56dc",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 284.776,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.63198,
    "c": 0.20963,
    "h": 316.6
  },
  "luminance": 0.22262
}

Semantic roles & 50–950 ramp

primary
#BA56DC
secondary
#BAE1AD
accent
#E93F6A
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA56DC

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

Preview Lab → · Contrast checker → · Palette generator →

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