#BA56DF#BA56DF

#BA56DF is a light, highly saturated purple. Relative luminance 0.224; OKLCH L 63.4% C 0.213 H 315.8°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#BA56DF
RGBrgb(186, 86, 223)
HSLhsl(284, 68%, 61%)
HSVhsv(284, 61%, 87%)
CMYKcmyk(16.6%, 61.4%, 0%, 12.5%)
CIE-LABlab(54.47, 60.97, -52.88)
CIE-LCHlch(54.47, 80.71, 319.06°)
OKLaboklab(63.37% 0.1523 -0.1482)
OKLCHoklch(63.37% 0.213 315.8)
XYZxyz(36.8947, 22.4237, 72.1825)
Luminance0.2242 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56DF #7BDF56
analogous
#7656DF #BA56DF #DF56BF
triadic
#BA56DF #DFBA56 #56DFBA
tetradic
#BA56DF #DF7656 #7BDF56 #56BFDF
square
#BA56DF #DF7656 #7BDF56 #56BFDF
split-complementary
#BA56DF #BFDF56 #56DF76
monochromatic
#7B1E9D #A327D0 #BA56DF #CF89E9 #E4BDF2

Accessibility & contrast

On white

3.83
#BA56DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#BA56DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56DF
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56DF#FFFFFF#000000##000000
##BA56DF1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#287CE3
Deuteranopia (green-blind)
#5685DC
Tritanopia (blue-blind)
#B86E93
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba56df;
/* rgb */ color: rgb(186, 86, 223);
/* oklch */ color: oklch(63.4% 0.213 315.8);
Tailwind
colors: {
  custom: {
    50: '#d28bea',
    500: '#ba56df',
    950: '#000000',
  },
}
SCSS
$custom: #ba56df;
$custom-light: #d28bea;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56df",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 223
  },
  "hsl": {
    "h": 283.796,
    "s": 68.159,
    "l": 60.588
  },
  "oklch": {
    "l": 0.63374,
    "c": 0.21252,
    "h": 315.8
  },
  "luminance": 0.22422
}

Semantic roles & 50–950 ramp

primary
#BA56DF
secondary
#BCE2AE
accent
#D01548
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA56DF

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

Preview Lab → · Contrast checker → · Palette generator →

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