#BA5BCA#BA5BCA

#BA5BCA is a light, vivid purple. Relative luminance 0.222; OKLCH L 62.8% C 0.185 H 321.7°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#BA5BCA
RGBrgb(186, 91, 202)
HSLhsl(291, 51%, 57%)
HSVhsv(291, 55%, 79%)
CMYKcmyk(7.9%, 55%, 0%, 20.8%)
CIE-LABlab(54.23, 54.49, -41.35)
CIE-LCHlch(54.23, 68.40, 322.81°)
OKLaboklab(62.83% 0.1451 -0.1147)
OKLCHoklch(62.83% 0.185 321.7)
XYZxyz(34.6503, 22.1871, 58.3230)
Luminance0.2219 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BCA #6BCA5B
analogous
#825BCA #BA5BCA #CA5BA3
triadic
#BA5BCA #CABA5B #5BCABA
tetradic
#BA5BCA #CA825B #6BCA5B #5BA3CA
square
#BA5BCA #CA825B #6BCA5B #5BA3CA
split-complementary
#BA5BCA #A3CA5B #5BCA82
monochromatic
#742A81 #9E39AF #BA5BCA #CD89D9 #E1B8E8

Accessibility & contrast

On white

3.86
#BA5BCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#BA5BCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BCA
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BCA#FFFFFF#000000##000000
##BA5BCA1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#477BCE
Deuteranopia (green-blind)
#6785C7
Tritanopia (blue-blind)
#BC6B8A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba5bca;
/* rgb */ color: rgb(186, 91, 202);
/* oklch */ color: oklch(62.8% 0.185 321.7);
Tailwind
colors: {
  custom: {
    50: '#d18eda',
    500: '#ba5bca',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bca;
$custom-light: #d18eda;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bca",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 291.351,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.62831,
    "c": 0.18493,
    "h": 321.7
  },
  "luminance": 0.22186
}

Semantic roles & 50–950 ramp

primary
#BA5BCA
secondary
#B0D7AA
accent
#DB4D62
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140D15
muted
#837D83

Preview Lab

Preview with #BA5BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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