#BA56CB#BA56CB

#BA56CB is a light, vivid purple. Relative luminance 0.214; OKLCH L 62.2% C 0.193 H 321.6°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#BA56CB
RGBrgb(186, 86, 203)
HSLhsl(291, 53%, 57%)
HSVhsv(291, 58%, 80%)
CMYKcmyk(8.4%, 57.6%, 0%, 20.4%)
CIE-LABlab(53.39, 57.06, -43.23)
CIE-LCHlch(53.39, 71.59, 322.85°)
OKLaboklab(62.24% 0.1516 -0.1201)
OKLCHoklch(62.24% 0.193 321.6)
XYZxyz(34.3558, 21.4081, 58.8109)
Luminance0.2141 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56CB #67CB56
analogous
#8056CB #BA56CB #CB56A2
triadic
#BA56CB #CBBA56 #56CBBA
tetradic
#BA56CB #CB8056 #67CB56 #56A2CB
square
#BA56CB #CB8056 #67CB56 #56A2CB
split-complementary
#BA56CB #A2CB56 #56CB80
monochromatic
#73277F #9D36AE #BA56CB #CD85D9 #E0B4E8

Accessibility & contrast

On white

3.98
#BA56CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#BA56CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56CB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56CB#FFFFFF#000000##000000
##BA56CB1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F78CF
Deuteranopia (green-blind)
#6383C8
Tritanopia (blue-blind)
#BC6788
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba56cb;
/* rgb */ color: rgb(186, 86, 203);
/* oklch */ color: oklch(62.2% 0.193 321.6);
Tailwind
colors: {
  custom: {
    50: '#d18bdb',
    500: '#ba56cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba56cb;
$custom-light: #d18bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56cb",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 291.282,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.62239,
    "c": 0.19343,
    "h": 321.6
  },
  "luminance": 0.21406
}

Semantic roles & 50–950 ramp

primary
#BA56CB
secondary
#ADD6A6
accent
#DC4B61
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA56CB

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

Preview Lab → · Contrast checker → · Palette generator →

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