#BA4BD2#BA4BD2

#BA4BD2 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.3% C 0.215 H 320.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BA4BD2
RGBrgb(186, 75, 210)
HSLhsl(289, 60%, 56%)
HSVhsv(289, 64%, 82%)
CMYKcmyk(11.4%, 64.3%, 0%, 17.6%)
CIE-LABlab(51.98, 63.30, -49.48)
CIE-LCHlch(51.98, 80.34, 321.99°)
OKLaboklab(61.33% 0.1651 -0.1382)
OKLCHoklch(61.33% 0.215 320.1)
XYZxyz(34.3972, 20.1260, 63.0331)
Luminance0.2012 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BD2 #63D24B
analogous
#764BD2 #BA4BD2 #D24BA7
triadic
#BA4BD2 #D2BA4B #4BD2BA
tetradic
#BA4BD2 #D2764B #63D24B #4BA7D2
square
#BA4BD2 #D2764B #63D24B #4BA7D2
split-complementary
#BA4BD2 #A7D24B #4BD276
monochromatic
#712182 #9B2DB3 #BA4BD2 #CD7CDE #E0ADEA

Accessibility & contrast

On white

4.18
#BA4BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#BA4BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BD2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BD2#FFFFFF#000000##000000
##BA4BD21.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2374D6
Deuteranopia (green-blind)
#5680CF
Tritanopia (blue-blind)
#BB6288
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba4bd2;
/* rgb */ color: rgb(186, 75, 210);
/* oklch */ color: oklch(61.3% 0.215 320.1);
Tailwind
colors: {
  custom: {
    50: '#d285e0',
    500: '#ba4bd2',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bd2;
$custom-light: #d285e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bd2",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 210
  },
  "hsl": {
    "h": 289.333,
    "s": 60,
    "l": 55.882
  },
  "oklch": {
    "l": 0.61334,
    "c": 0.21531,
    "h": 320.1
  },
  "luminance": 0.20124
}

Semantic roles & 50–950 ramp

primary
#BA4BD2
secondary
#AAD8A0
accent
#E34561
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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