#BA48BF#BA48BF

#BA48BF is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 59.9% C 0.203 H 326.0°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BA48BF
RGBrgb(186, 72, 191)
HSLhsl(297, 48%, 52%)
HSVhsv(297, 62%, 75%)
CMYKcmyk(2.6%, 62.3%, 0%, 25.1%)
CIE-LABlab(50.50, 61.11, -40.91)
CIE-LCHlch(50.50, 73.54, 326.20°)
OKLaboklab(59.93% 0.1681 -0.1132)
OKLCHoklch(59.93% 0.203 326)
XYZxyz(31.9704, 18.8374, 51.2322)
Luminance0.1883 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48BF #4DBF48
analogous
#7F48BF #BA48BF #BF4889
triadic
#BA48BF #BFBA48 #48BFBA
tetradic
#BA48BF #BF7F48 #4DBF48 #4889BF
square
#BA48BF #BF7F48 #4DBF48 #4889BF
split-complementary
#BA48BF #89BF48 #48BF7F
monochromatic
#652468 #913496 #BA48BF #CB75CF #DCA3DF

Accessibility & contrast

On white

4.41
#BA48BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#BA48BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48BF
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48BF#FFFFFF#000000##000000
##BA48BF1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#366FC3
Deuteranopia (green-blind)
#607DBC
Tritanopia (blue-blind)
#BF587D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba48bf;
/* rgb */ color: rgb(186, 72, 191);
/* oklch */ color: oklch(59.9% 0.203 326.0);
Tailwind
colors: {
  custom: {
    50: '#d283d3',
    500: '#ba48bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba48bf;
$custom-light: #d283d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48bf",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 297.479,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5993,
    "c": 0.20268,
    "h": 326
  },
  "luminance": 0.18835
}

Semantic roles & 50–950 ramp

primary
#BA48BF
secondary
#99CC97
accent
#D85056
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #BA48BF

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

Preview Lab → · Contrast checker → · Palette generator →

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