#BA56DD#BA56DD

#BA56DD is a light, highly saturated purple. Relative luminance 0.223; OKLCH L 63.3% C 0.211 H 316.3°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#BA56DD
RGBrgb(186, 86, 221)
HSLhsl(284, 67%, 60%)
HSVhsv(284, 61%, 87%)
CMYKcmyk(15.8%, 61.1%, 0%, 13.3%)
CIE-LABlab(54.36, 60.57, -51.93)
CIE-LCHlch(54.36, 79.79, 319.39°)
OKLaboklab(63.26% 0.1523 -0.1454)
OKLCHoklch(63.26% 0.211 316.3)
XYZxyz(36.6267, 22.3165, 70.7707)
Luminance0.2231 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56DD #79DD56
analogous
#7656DD #BA56DD #DD56BD
triadic
#BA56DD #DDBA56 #56DDBA
tetradic
#BA56DD #DD7656 #79DD56 #56BDDD
square
#BA56DD #DD7656 #79DD56 #56BDDD
split-complementary
#BA56DD #BDDD56 #56DD76
monochromatic
#7A1F9A #A229CD #BA56DD #CF89E7 #E4BCF2

Accessibility & contrast

On white

3.84
#BA56DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#BA56DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56DD
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56DD#FFFFFF#000000##000000
##BA56DD1.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7CE1
Deuteranopia (green-blind)
#5785DA
Tritanopia (blue-blind)
#B86E92
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba56dd;
/* rgb */ color: rgb(186, 86, 221);
/* oklch */ color: oklch(63.3% 0.211 316.3);
Tailwind
colors: {
  custom: {
    50: '#d28be8',
    500: '#ba56dd',
    950: '#000000',
  },
}
SCSS
$custom: #ba56dd;
$custom-light: #d28be8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56dd",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 221
  },
  "hsl": {
    "h": 284.444,
    "s": 66.502,
    "l": 60.196
  },
  "oklch": {
    "l": 0.63256,
    "c": 0.21058,
    "h": 316.3
  },
  "luminance": 0.22315
}

Semantic roles & 50–950 ramp

primary
#BA56DD
secondary
#BBE1AE
accent
#CE1747
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA56DD

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

Preview Lab → · Contrast checker → · Palette generator →

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