#BA48BC#BA48BC

#BA48BC is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 59.8% C 0.200 H 327.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BA48BC
RGBrgb(186, 72, 188)
HSLhsl(299, 46%, 51%)
HSVhsv(299, 62%, 74%)
CMYKcmyk(1.1%, 61.7%, 0%, 26.3%)
CIE-LABlab(50.34, 60.58, -39.41)
CIE-LCHlch(50.34, 72.27, 326.95°)
OKLaboklab(59.77% 0.1679 -0.1089)
OKLCHoklch(59.77% 0.2 327)
XYZxyz(31.6436, 18.7067, 49.5112)
Luminance0.1870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48BC #4ABC48
analogous
#8048BC #BA48BC #BC4884
triadic
#BA48BC #BCBA48 #48BCBA
tetradic
#BA48BC #BC8048 #4ABC48 #4884BC
square
#BA48BC #BC8048 #4ABC48 #4884BC
split-complementary
#BA48BC #84BC48 #48BC80
monochromatic
#642565 #903592 #BA48BC #CB75CC #DCA2DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA48BC#FFFFFF#000000##000000
##BA48BC1.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)
#386EBF
Deuteranopia (green-blind)
#627DB9
Tritanopia (blue-blind)
#BF577C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba48bc;
/* rgb */ color: rgb(186, 72, 188);
/* oklch */ color: oklch(59.8% 0.200 327.0);
Tailwind
colors: {
  custom: {
    50: '#d283d0',
    500: '#ba48bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba48bc;
$custom-light: #d283d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48bc",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 188
  },
  "hsl": {
    "h": 298.966,
    "s": 46.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59768,
    "c": 0.20014,
    "h": 327
  },
  "luminance": 0.18705
}

Semantic roles & 50–950 ramp

primary
#BA48BC
secondary
#97CA96
accent
#D65254
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA48BC

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

Preview Lab → · Contrast checker → · Palette generator →

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