#BA56CF#BA56CF

#BA56CF is a light, vivid purple. Relative luminance 0.216; OKLCH L 62.5% C 0.197 H 320.4°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA56CF
RGBrgb(186, 86, 207)
HSLhsl(290, 56%, 57%)
HSVhsv(290, 58%, 81%)
CMYKcmyk(10.1%, 58.5%, 0%, 18.8%)
CIE-LABlab(53.60, 57.83, -45.19)
CIE-LCHlch(53.60, 73.39, 321.99°)
OKLaboklab(62.46% 0.1519 -0.1258)
OKLCHoklch(62.46% 0.197 320.4)
XYZxyz(34.8386, 21.6012, 61.3537)
Luminance0.2160 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56CF #6BCF56
analogous
#7E56CF #BA56CF #CF56A7
triadic
#BA56CF #CFBA56 #56CFBA
tetradic
#BA56CF #CF7E56 #6BCF56 #56A7CF
square
#BA56CF #CF7E56 #6BCF56 #56A7CF
split-complementary
#BA56CF #A7CF56 #56CF7E
monochromatic
#742685 #9E33B5 #BA56CF #CD86DD #E1B5EA

Accessibility & contrast

On white

3.95
#BA56CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#BA56CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56CF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56CF#FFFFFF#000000##000000
##BA56CF1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C79D3
Deuteranopia (green-blind)
#6084CC
Tritanopia (blue-blind)
#BB698B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba56cf;
/* rgb */ color: rgb(186, 86, 207);
/* oklch */ color: oklch(62.5% 0.197 320.4);
Tailwind
colors: {
  custom: {
    50: '#d28bde',
    500: '#ba56cf',
    950: '#000000',
  },
}
SCSS
$custom: #ba56cf;
$custom-light: #d28bde;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56cf",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 289.587,
    "s": 55.76,
    "l": 57.451
  },
  "oklch": {
    "l": 0.62458,
    "c": 0.19721,
    "h": 320.4
  },
  "luminance": 0.216
}

Semantic roles & 50–950 ramp

primary
#BA56CF
secondary
#B0D9A8
accent
#DF4963
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA56CF

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

Preview Lab → · Contrast checker → · Palette generator →

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