#BA56C7#BA56C7

#BA56C7 is a light, vivid purple. Relative luminance 0.212; OKLCH L 62.0% C 0.190 H 322.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#BA56C7
RGBrgb(186, 86, 199)
HSLhsl(293, 50%, 56%)
HSVhsv(293, 57%, 78%)
CMYKcmyk(6.5%, 56.8%, 0%, 22%)
CIE-LABlab(53.19, 56.31, -41.27)
CIE-LCHlch(53.19, 69.81, 323.76°)
OKLaboklab(62.02% 0.1514 -0.1144)
OKLCHoklch(62.02% 0.19 322.9)
XYZxyz(33.8853, 21.2199, 56.3327)
Luminance0.2122 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56C7 #63C756
analogous
#8156C7 #BA56C7 #C7569B
triadic
#BA56C7 #C7BA56 #56C7BA
tetradic
#BA56C7 #C78156 #63C756 #569BC7
square
#BA56C7 #C78156 #63C756 #569BC7
split-complementary
#BA56C7 #9BC756 #56C781
monochromatic
#71287A #9B38A8 #BA56C7 #CD84D6 #E0B2E5

Accessibility & contrast

On white

4.00
#BA56C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#BA56C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56C7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56C7#FFFFFF#000000##000000
##BA56C71.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4377CB
Deuteranopia (green-blind)
#6583C4
Tritanopia (blue-blind)
#BD6686
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba56c7;
/* rgb */ color: rgb(186, 86, 199);
/* oklch */ color: oklch(62.0% 0.190 322.9);
Tailwind
colors: {
  custom: {
    50: '#d18bd8',
    500: '#ba56c7',
    950: '#000000',
  },
}
SCSS
$custom: #ba56c7;
$custom-light: #d18bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56c7",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 199
  },
  "hsl": {
    "h": 293.097,
    "s": 50.222,
    "l": 55.882
  },
  "oklch": {
    "l": 0.62024,
    "c": 0.18971,
    "h": 322.9
  },
  "luminance": 0.21218
}

Semantic roles & 50–950 ramp

primary
#BA56C7
secondary
#AAD4A5
accent
#DA4E5E
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA56C7

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

Preview Lab → · Contrast checker → · Palette generator →

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