#BA5BC2#BA5BC2

#BA5BC2 is a light, vivid purple. Relative luminance 0.218; OKLCH L 62.4% C 0.177 H 324.4°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#BA5BC2
RGBrgb(186, 91, 194)
HSLhsl(295, 46%, 56%)
HSVhsv(295, 53%, 76%)
CMYKcmyk(4.1%, 53.1%, 0%, 23.9%)
CIE-LABlab(53.83, 52.98, -37.38)
CIE-LCHlch(53.83, 64.84, 324.79°)
OKLaboklab(62.42% 0.1443 -0.1032)
OKLCHoklch(62.42% 0.177 324.4)
XYZxyz(33.7275, 21.8180, 53.4632)
Luminance0.2182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BC2 #63C25B
analogous
#865BC2 #BA5BC2 #C25B96
triadic
#BA5BC2 #C2BA5B #5BC2BA
tetradic
#BA5BC2 #C2865B #63C25B #5B96C2
square
#BA5BC2 #C2865B #63C25B #5B96C2
split-complementary
#BA5BC2 #96C25B #5BC286
monochromatic
#712C77 #9B3DA3 #BA5BC2 #CD88D3 #E0B4E3

Accessibility & contrast

On white

3.92
#BA5BC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#BA5BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BC2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BC2#FFFFFF#000000##000000
##BA5BC21.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D79C5
Deuteranopia (green-blind)
#6B85BF
Tritanopia (blue-blind)
#BE6886
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba5bc2;
/* rgb */ color: rgb(186, 91, 194);
/* oklch */ color: oklch(62.4% 0.177 324.4);
Tailwind
colors: {
  custom: {
    50: '#d18ed5',
    500: '#ba5bc2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5bc2;
$custom-light: #d18ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5bc2",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 295.34,
    "s": 45.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.62416,
    "c": 0.17736,
    "h": 324.4
  },
  "luminance": 0.21816
}

Semantic roles & 50–950 ramp

primary
#BA5BC2
secondary
#AAD2A7
accent
#D5525D
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140D14
muted
#837D83

Preview Lab

Preview with #BA5BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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