#BA5BCB#BA5BCB

#BA5BCB is a light, vivid purple. Relative luminance 0.222; OKLCH L 62.9% C 0.186 H 321.4°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#BA5BCB
RGBrgb(186, 91, 203)
HSLhsl(291, 52%, 58%)
HSVhsv(291, 55%, 80%)
CMYKcmyk(8.4%, 55.2%, 0%, 20.4%)
CIE-LABlab(54.28, 54.68, -41.84)
CIE-LCHlch(54.28, 68.85, 322.58°)
OKLaboklab(62.88% 0.1452 -0.1161)
OKLCHoklch(62.88% 0.186 321.4)
XYZxyz(34.7691, 22.2347, 58.9486)
Luminance0.2223 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BCB #6CCB5B
analogous
#825BCB #BA5BCB #CB5BA4
triadic
#BA5BCB #CBBA5B #5BCBBA
tetradic
#BA5BCB #CB825B #6CCB5B #5BA4CB
square
#BA5BCB #CB825B #6CCB5B #5BA4CB
split-complementary
#BA5BCB #A4CB5B #5BCB82
monochromatic
#752982 #9E38B1 #BA5BCB #CE89DA #E1B8E8

Accessibility & contrast

On white

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

On black

5.45
#BA5BCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BCB
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BCB#FFFFFF#000000##000000
##BA5BCB1.003.865.455.45
#FFFFFF3.861.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba5bcb;
/* rgb */ color: rgb(186, 91, 203);
/* oklch */ color: oklch(62.9% 0.186 321.4);
Tailwind
colors: {
  custom: {
    50: '#d18edb',
    500: '#ba5bcb',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bcb;
$custom-light: #d18edb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bcb",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 290.893,
    "s": 51.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.62884,
    "c": 0.1859,
    "h": 321.4
  },
  "luminance": 0.22233
}

Semantic roles & 50–950 ramp

primary
#BA5BCB
secondary
#B1D7AA
accent
#DB4C62
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140D15
muted
#837D83

Preview Lab

Preview with #BA5BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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