#BA48A9#BA48A9

#BA48A9 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.8% C 0.185 H 333.9°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BA48A9
RGBrgb(186, 72, 169)
HSLhsl(309, 45%, 51%)
HSVhsv(309, 61%, 73%)
CMYKcmyk(0%, 61.3%, 9.1%, 27.1%)
CIE-LABlab(49.42, 57.40, -29.75)
CIE-LCHlch(49.42, 64.65, 332.60°)
OKLaboklab(58.8% 0.1659 -0.0811)
OKLCHoklch(58.8% 0.185 333.9)
XYZxyz(29.7286, 17.9407, 39.4256)
Luminance0.1794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48A9 #48BA59
analogous
#9248BA #BA48A9 #BA4870
triadic
#BA48A9 #A9BA48 #48A9BA
tetradic
#BA48A9 #BA9248 #48BA59 #4870BA
square
#BA48A9 #BA9248 #48BA59 #4870BA
split-complementary
#BA48A9 #70BA48 #48BA92
monochromatic
#622559 #8F3682 #BA48A9 #CB74BE #DCA1D3

Accessibility & contrast

On white

4.58
#BA48A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#BA48A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48A9
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48A9#FFFFFF#000000##000000
##BA48A91.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#466BAC
Deuteranopia (green-blind)
#6B7CA6
Tritanopia (blue-blind)
#C25072
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba48a9;
/* rgb */ color: rgb(186, 72, 169);
/* oklch */ color: oklch(58.8% 0.185 333.9);
Tailwind
colors: {
  custom: {
    50: '#d282c3',
    500: '#ba48a9',
    950: '#000000',
  },
}
SCSS
$custom: #ba48a9;
$custom-light: #d282c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48a9",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 169
  },
  "hsl": {
    "h": 308.947,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.588,
    "c": 0.1847,
    "h": 333.9
  },
  "luminance": 0.17938
}

Semantic roles & 50–950 ramp

primary
#BA48A9
secondary
#96C89D
accent
#D56653
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA48A9

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

Preview Lab → · Contrast checker → · Palette generator →

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