#BA48CC#BA48CC

#BA48CC is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.7% C 0.214 H 322.0°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#BA48CC
RGBrgb(186, 72, 204)
HSLhsl(292, 56%, 54%)
HSVhsv(292, 65%, 80%)
CMYKcmyk(8.8%, 64.7%, 0%, 20%)
CIE-LABlab(51.19, 63.44, -47.30)
CIE-LCHlch(51.19, 79.13, 323.29°)
OKLaboklab(60.66% 0.1685 -0.1318)
OKLCHoklch(60.66% 0.214 322)
XYZxyz(33.4650, 19.4352, 59.1037)
Luminance0.1943 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48CC #5ACC48
analogous
#7848CC #BA48CC #CC489C
triadic
#BA48CC #CCBA48 #48CCBA
tetradic
#BA48CC #CC7848 #5ACC48 #489CCC
square
#BA48CC #CC7848 #5ACC48 #489CCC
split-complementary
#BA48CC #9CCC48 #48CC78
monochromatic
#6C2178 #972FA8 #BA48CC #CC78D9 #DEA8E7

Accessibility & contrast

On white

4.30
#BA48CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#BA48CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48CC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48CC#FFFFFF#000000##000000
##BA48CC1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2672D0
Deuteranopia (green-blind)
#587EC9
Tritanopia (blue-blind)
#BC5E84
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba48cc;
/* rgb */ color: rgb(186, 72, 204);
/* oklch */ color: oklch(60.7% 0.214 322.0);
Tailwind
colors: {
  custom: {
    50: '#d283dc',
    500: '#ba48cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba48cc;
$custom-light: #d283dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48cc",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 291.818,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.60659,
    "c": 0.21392,
    "h": 322
  },
  "luminance": 0.19433
}

Semantic roles & 50–950 ramp

primary
#BA48CC
secondary
#A3D49C
accent
#E0485D
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #BA48CC

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

Preview Lab → · Contrast checker → · Palette generator →

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