#BA5BD2#BA5BD2

#BA5BD2 is a light, vivid purple. Relative luminance 0.226; OKLCH L 63.3% C 0.193 H 319.1°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#BA5BD2
RGBrgb(186, 91, 210)
HSLhsl(288, 57%, 59%)
HSVhsv(288, 57%, 82%)
CMYKcmyk(11.4%, 56.7%, 0%, 17.6%)
CIE-LABlab(54.63, 56.04, -45.26)
CIE-LCHlch(54.63, 72.04, 321.07°)
OKLaboklab(63.26% 0.1457 -0.126)
OKLCHoklch(63.26% 0.193 319.1)
XYZxyz(35.6221, 22.5759, 63.4414)
Luminance0.2257 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BD2 #73D25B
analogous
#7F5BD2 #BA5BD2 #D25BAF
triadic
#BA5BD2 #D2BA5B #5BD2BA
tetradic
#BA5BD2 #D27F5B #73D25B #5BAFD2
square
#BA5BD2 #D27F5B #73D25B #5BAFD2
split-complementary
#BA5BD2 #AFD25B #5BD27F
monochromatic
#78268C #A134BC #BA5BD2 #CE8BDF #E2BBEC

Accessibility & contrast

On white

3.81
#BA5BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#BA5BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BD2
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BD2#FFFFFF#000000##000000
##BA5BD21.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#417CD6
Deuteranopia (green-blind)
#6386CF
Tritanopia (blue-blind)
#BA6D8E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba5bd2;
/* rgb */ color: rgb(186, 91, 210);
/* oklch */ color: oklch(63.3% 0.193 319.1);
Tailwind
colors: {
  custom: {
    50: '#d18ee0',
    500: '#ba5bd2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bd2;
$custom-light: #d18ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bd2",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 210
  },
  "hsl": {
    "h": 287.899,
    "s": 56.938,
    "l": 59.02
  },
  "oklch": {
    "l": 0.63262,
    "c": 0.19267,
    "h": 319.1
  },
  "luminance": 0.22574
}

Semantic roles & 50–950 ramp

primary
#BA5BD2
secondary
#B6DCAD
accent
#E04866
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140D15
muted
#837D83

Preview Lab

Preview with #BA5BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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