#BA4BB2#BA4BB2

#BA4BB2 is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.6% C 0.188 H 330.5°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BA4BB2
RGBrgb(186, 75, 178)
HSLhsl(304, 45%, 51%)
HSVhsv(304, 60%, 73%)
CMYKcmyk(0%, 59.7%, 4.3%, 27.1%)
CIE-LABlab(50.32, 57.58, -33.63)
CIE-LCHlch(50.32, 66.68, 329.71°)
OKLaboklab(59.59% 0.1633 -0.0922)
OKLCHoklch(59.59% 0.188 330.5)
XYZxyz(30.8015, 18.6877, 44.0956)
Luminance0.1869 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BB2 #4BBA53
analogous
#8A4BBA #BA4BB2 #BA4B7A
triadic
#BA4BB2 #B2BA4B #4BB2BA
tetradic
#BA4BB2 #BA8A4B #4BBA53 #4B7ABA
square
#BA4BB2 #BA8A4B #4BBA53 #4B7ABA
split-complementary
#BA4BB2 #7ABA4B #4BBA8A
monochromatic
#642660 #90378A #BA4BB2 #CB77C5 #DCA3D8

Accessibility & contrast

On white

4.43
#BA4BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#BA4BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BB2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BB2#FFFFFF#000000##000000
##BA4BB21.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#446EB5
Deuteranopia (green-blind)
#687DAF
Tritanopia (blue-blind)
#C15678
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4bb2;
/* rgb */ color: rgb(186, 75, 178);
/* oklch */ color: oklch(59.6% 0.188 330.5);
Tailwind
colors: {
  custom: {
    50: '#d284c9',
    500: '#ba4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bb2;
$custom-light: #d284c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bb2",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 304.324,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59592,
    "c": 0.18757,
    "h": 330.5
  },
  "luminance": 0.18686
}

Semantic roles & 50–950 ramp

primary
#BA4BB2
secondary
#98C99B
accent
#D45D54
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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