#BA48BB#BA48BB

#BA48BB is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.7% C 0.199 H 327.4°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA48BB
RGBrgb(186, 72, 187)
HSLhsl(299, 46%, 51%)
HSVhsv(299, 61%, 73%)
CMYKcmyk(0.5%, 61.5%, 0%, 26.7%)
CIE-LABlab(50.29, 60.41, -38.91)
CIE-LCHlch(50.29, 71.86, 327.21°)
OKLaboklab(59.72% 0.1678 -0.1075)
OKLCHoklch(59.72% 0.199 327.4)
XYZxyz(31.5362, 18.6637, 48.9455)
Luminance0.1866 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48BB #49BB48
analogous
#8048BB #BA48BB #BB4882
triadic
#BA48BB #BBBA48 #48BBBA
tetradic
#BA48BB #BB8048 #49BB48 #4882BB
square
#BA48BB #BB8048 #49BB48 #4882BB
split-complementary
#BA48BB #82BB48 #48BB80
monochromatic
#632564 #8F3690 #BA48BB #CB75CC #DCA1DC

Accessibility & contrast

On white

4.44
#BA48BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#BA48BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48BB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48BB#FFFFFF#000000##000000
##BA48BB1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#396EBE
Deuteranopia (green-blind)
#627DB8
Tritanopia (blue-blind)
#BF577B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba48bb;
/* rgb */ color: rgb(186, 72, 187);
/* oklch */ color: oklch(59.7% 0.199 327.4);
Tailwind
colors: {
  custom: {
    50: '#d282d0',
    500: '#ba48bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba48bb;
$custom-light: #d282d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48bb",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 187
  },
  "hsl": {
    "h": 299.478,
    "s": 45.817,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59715,
    "c": 0.19929,
    "h": 327.4
  },
  "luminance": 0.18662
}

Semantic roles & 50–950 ramp

primary
#BA48BB
secondary
#96C996
accent
#D55253
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA48BB

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

Preview Lab → · Contrast checker → · Palette generator →

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