#BA48B2#BA48B2

#BA48B2 is a mid, vivid purple. Relative luminance 0.183; OKLCH L 59.2% C 0.192 H 330.5°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BA48B2
RGBrgb(186, 72, 178)
HSLhsl(304, 45%, 51%)
HSVhsv(304, 61%, 73%)
CMYKcmyk(0%, 61.3%, 4.3%, 27.1%)
CIE-LABlab(49.85, 58.88, -34.37)
CIE-LCHlch(49.85, 68.17, 329.73°)
OKLaboklab(59.25% 0.1671 -0.0944)
OKLCHoklch(59.25% 0.192 330.5)
XYZxyz(30.6028, 18.2903, 44.0294)
Luminance0.1829 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48B2 #48BA50
analogous
#8948BA #BA48B2 #BA4879
triadic
#BA48B2 #B2BA48 #48B2BA
tetradic
#BA48B2 #BA8948 #48BA50 #4879BA
square
#BA48B2 #BA8948 #48BA50 #4879BA
split-complementary
#BA48B2 #79BA48 #48BA89
monochromatic
#62255E #8F3689 #BA48B2 #CB74C5 #DCA1D7

Accessibility & contrast

On white

4.51
#BA48B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#BA48B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48B2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48B2#FFFFFF#000000##000000
##BA48B21.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#406CB5
Deuteranopia (green-blind)
#677CAF
Tritanopia (blue-blind)
#C15376
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba48b2;
/* rgb */ color: rgb(186, 72, 178);
/* oklch */ color: oklch(59.2% 0.192 330.5);
Tailwind
colors: {
  custom: {
    50: '#d282c9',
    500: '#ba48b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba48b2;
$custom-light: #d282c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48b2",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 304.211,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59246,
    "c": 0.19186,
    "h": 330.5
  },
  "luminance": 0.18288
}

Semantic roles & 50–950 ramp

primary
#BA48B2
secondary
#96C899
accent
#D55C53
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA48B2

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

Preview Lab → · Contrast checker → · Palette generator →

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