#BA4BD5#BA4BD5

#BA4BD5 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.5% C 0.218 H 319.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA4BD5
RGBrgb(186, 75, 213)
HSLhsl(288, 62%, 56%)
HSVhsv(288, 65%, 84%)
CMYKcmyk(12.7%, 64.8%, 0%, 16.5%)
CIE-LABlab(52.15, 63.87, -50.92)
CIE-LCHlch(52.15, 81.68, 321.43°)
OKLaboklab(61.51% 0.1651 -0.1424)
OKLCHoklch(61.51% 0.218 319.2)
XYZxyz(34.7745, 20.2769, 65.0200)
Luminance0.2028 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BD5 #66D54B
analogous
#754BD5 #BA4BD5 #D54BAB
triadic
#BA4BD5 #D5BA4B #4BD5BA
tetradic
#BA4BD5 #D5754B #66D54B #4BABD5
square
#BA4BD5 #D5754B #66D54B #4BABD5
split-complementary
#BA4BD5 #ABD54B #4BD575
monochromatic
#721F86 #9C2BB8 #BA4BD5 #CD7DE1 #E0AEEC

Accessibility & contrast

On white

4.15
#BA4BD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#BA4BD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BD5
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BD5#FFFFFF#000000##000000
##BA4BD51.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D75D9
Deuteranopia (green-blind)
#5480D2
Tritanopia (blue-blind)
#BA638A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba4bd5;
/* rgb */ color: rgb(186, 75, 213);
/* oklch */ color: oklch(61.5% 0.218 319.2);
Tailwind
colors: {
  custom: {
    50: '#d285e2',
    500: '#ba4bd5',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bd5;
$custom-light: #d285e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bd5",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 213
  },
  "hsl": {
    "h": 288.261,
    "s": 62.162,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61511,
    "c": 0.21802,
    "h": 319.2
  },
  "luminance": 0.20275
}

Semantic roles & 50–950 ramp

primary
#BA4BD5
secondary
#ADDAA2
accent
#E54362
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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