#BA48AB#BA48AB

#BA48AB is a mid, vivid purple. Relative luminance 0.180; OKLCH L 58.9% C 0.186 H 333.2°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#BA48AB
RGBrgb(186, 72, 171)
HSLhsl(308, 45%, 51%)
HSVhsv(308, 61%, 73%)
CMYKcmyk(0%, 61.3%, 8.1%, 27.1%)
CIE-LABlab(49.52, 57.72, -30.78)
CIE-LCHlch(49.52, 65.42, 331.93°)
OKLaboklab(58.9% 0.1662 -0.0841)
OKLCHoklch(58.9% 0.186 333.2)
XYZxyz(29.9178, 18.0164, 40.4219)
Luminance0.1801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48AB #48BA57
analogous
#9048BA #BA48AB #BA4872
triadic
#BA48AB #ABBA48 #48ABBA
tetradic
#BA48AB #BA9048 #48BA57 #4872BA
square
#BA48AB #BA9048 #48BA57 #4872BA
split-complementary
#BA48AB #72BA48 #48BA90
monochromatic
#62255A #8F3683 #BA48AB #CB74BF #DCA1D4

Accessibility & contrast

On white

4.56
#BA48AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#BA48AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48AB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48AB#FFFFFF#000000##000000
##BA48AB1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#456BAE
Deuteranopia (green-blind)
#6A7CA8
Tritanopia (blue-blind)
#C25173
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba48ab;
/* rgb */ color: rgb(186, 72, 171);
/* oklch */ color: oklch(58.9% 0.186 333.2);
Tailwind
colors: {
  custom: {
    50: '#d282c4',
    500: '#ba48ab',
    950: '#000000',
  },
}
SCSS
$custom: #ba48ab;
$custom-light: #d282c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48ab",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 171
  },
  "hsl": {
    "h": 307.895,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58897,
    "c": 0.18627,
    "h": 333.2
  },
  "luminance": 0.18014
}

Semantic roles & 50–950 ramp

primary
#BA48AB
secondary
#96C89C
accent
#D56453
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA48AB

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

Preview Lab → · Contrast checker → · Palette generator →

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