#BA56FB#BA56FB

#BA56FB is a light, highly saturated violet. Relative luminance 0.241; OKLCH L 65.1% C 0.240 H 309.1°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#BA56FB
RGBrgb(186, 86, 251)
HSLhsl(276, 95%, 66%)
HSVhsv(276, 66%, 98%)
CMYKcmyk(25.9%, 65.7%, 0%, 1.6%)
CIE-LABlab(56.15, 66.77, -65.86)
CIE-LCHlch(56.15, 93.79, 315.39°)
OKLaboklab(65.12% 0.1511 -0.1862)
OKLCHoklch(65.12% 0.24 309.1)
XYZxyz(40.9866, 24.0604, 93.7331)
Luminance0.2406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56FB #97FB56
analogous
#6756FB #BA56FB #FB56E9
triadic
#BA56FB #FBBA56 #56FBBA
tetradic
#BA56FB #FB6756 #97FB56 #56E9FB
square
#BA56FB #FB6756 #97FB56 #56E9FB
split-complementary
#BA56FB #E9FB56 #56FB67
monochromatic
#8105D2 #A21AFA #BA56FB #D292FC #EBCEFE

Accessibility & contrast

On white

3.61
#BA56FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#BA56FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56FB
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56FB#FFFFFF#000000##000000
##BA56FB1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#3988F7
Tritanopia (blue-blind)
#B079A2
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba56fb;
/* rgb */ color: rgb(186, 86, 251);
/* oklch */ color: oklch(65.1% 0.240 309.1);
Tailwind
colors: {
  custom: {
    50: '#d38cfd',
    500: '#ba56fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba56fb;
$custom-light: #d38cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56fb",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 251
  },
  "hsl": {
    "h": 276.364,
    "s": 95.376,
    "l": 66.078
  },
  "oklch": {
    "l": 0.65118,
    "c": 0.23984,
    "h": 309.1
  },
  "luminance": 0.2406
}

Semantic roles & 50–950 ramp

primary
#BA56FB
secondary
#D1F2BB
accent
#E6005A
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150D18
muted
#837D86

Preview Lab

Preview with #BA56FB

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

Preview Lab → · Contrast checker → · Palette generator →

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