#BA56CA#BA56CA

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

Color values

HEX#BA56CA
RGBrgb(186, 86, 202)
HSLhsl(292, 52%, 56%)
HSVhsv(292, 57%, 79%)
CMYKcmyk(7.9%, 57.4%, 0%, 20.8%)
CIE-LABlab(53.34, 56.87, -42.74)
CIE-LCHlch(53.34, 71.14, 323.07°)
OKLaboklab(62.19% 0.1516 -0.1187)
OKLCHoklch(62.19% 0.193 321.9)
XYZxyz(34.2370, 21.3606, 58.1853)
Luminance0.2136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56CA #66CA56
analogous
#8056CA #BA56CA #CA56A0
triadic
#BA56CA #CABA56 #56CABA
tetradic
#BA56CA #CA8056 #66CA56 #56A0CA
square
#BA56CA #CA8056 #66CA56 #56A0CA
split-complementary
#BA56CA #A0CA56 #56CA80
monochromatic
#72287E #9C36AD #BA56CA #CD85D9 #E0B3E7

Accessibility & contrast

On white

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

On black

5.27
#BA56CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56CA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56CA#FFFFFF#000000##000000
##BA56CA1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4078CE
Deuteranopia (green-blind)
#6383C7
Tritanopia (blue-blind)
#BC6788
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba56ca;
/* rgb */ color: rgb(186, 86, 202);
/* oklch */ color: oklch(62.2% 0.193 321.9);
Tailwind
colors: {
  custom: {
    50: '#d18bda',
    500: '#ba56ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba56ca;
$custom-light: #d18bda;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56ca",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 291.724,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.62185,
    "c": 0.1925,
    "h": 321.9
  },
  "luminance": 0.21359
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA56CA

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

Preview Lab → · Contrast checker → · Palette generator →

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