#BA48D6#BA48D6

#BA48D6 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.2% C 0.223 H 319.1°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BA48D6
RGBrgb(186, 72, 214)
HSLhsl(288, 63%, 56%)
HSVhsv(288, 66%, 84%)
CMYKcmyk(13.1%, 66.4%, 0%, 16.1%)
CIE-LABlab(51.76, 65.30, -52.11)
CIE-LCHlch(51.76, 83.55, 321.41°)
OKLaboklab(61.25% 0.1684 -0.1459)
OKLCHoklch(61.25% 0.223 319.1)
XYZxyz(34.7031, 19.9305, 65.6243)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48D6 #64D648
analogous
#7348D6 #BA48D6 #D648AB
triadic
#BA48D6 #D6BA48 #48D6BA
tetradic
#BA48D6 #D67348 #64D648 #48ABD6
square
#BA48D6 #D67348 #64D648 #48ABD6
split-complementary
#BA48D6 #ABD648 #48D673
monochromatic
#711E86 #9C29B8 #BA48D6 #CD7AE1 #E0ACEC

Accessibility & contrast

On white

4.21
#BA48D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#BA48D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48D6
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48D6#FFFFFF#000000##000000
##BA48D61.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1074DA
Deuteranopia (green-blind)
#517FD3
Tritanopia (blue-blind)
#BA6289
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba48d6;
/* rgb */ color: rgb(186, 72, 214);
/* oklch */ color: oklch(61.2% 0.223 319.1);
Tailwind
colors: {
  custom: {
    50: '#d283e3',
    500: '#ba48d6',
    950: '#000000',
  },
}
SCSS
$custom: #ba48d6;
$custom-light: #d283e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48d6",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 214
  },
  "hsl": {
    "h": 288.169,
    "s": 63.393,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61248,
    "c": 0.22276,
    "h": 319.1
  },
  "luminance": 0.19929
}

Semantic roles & 50–950 ramp

primary
#BA48D6
secondary
#ABDAA0
accent
#E64162
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150B15
muted
#837C84

Preview Lab

Preview with #BA48D6

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

Preview Lab → · Contrast checker → · Palette generator →

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