#BA48CE#BA48CE

#BA48CE is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.8% C 0.216 H 321.4°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA48CE
RGBrgb(186, 72, 206)
HSLhsl(291, 58%, 55%)
HSVhsv(291, 65%, 81%)
CMYKcmyk(9.7%, 65%, 0%, 19.2%)
CIE-LABlab(51.30, 63.81, -48.27)
CIE-LCHlch(51.30, 80.01, 322.89°)
OKLaboklab(60.78% 0.1685 -0.1346)
OKLCHoklch(60.78% 0.216 321.4)
XYZxyz(33.7064, 19.5318, 60.3751)
Luminance0.1953 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48CE #5CCE48
analogous
#7748CE #BA48CE #CE489F
triadic
#BA48CE #CEBA48 #48CEBA
tetradic
#BA48CE #CE7748 #5CCE48 #489FCE
square
#BA48CE #CE7748 #5CCE48 #489FCE
split-complementary
#BA48CE #9FCE48 #48CE77
monochromatic
#6D217B #982EAB #BA48CE #CC78DB #DEA9E8

Accessibility & contrast

On white

4.28
#BA48CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#BA48CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48CE
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48CE#FFFFFF#000000##000000
##BA48CE1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2372D2
Deuteranopia (green-blind)
#577ECB
Tritanopia (blue-blind)
#BC5E85
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba48ce;
/* rgb */ color: rgb(186, 72, 206);
/* oklch */ color: oklch(60.8% 0.216 321.4);
Tailwind
colors: {
  custom: {
    50: '#d283dd',
    500: '#ba48ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba48ce;
$custom-light: #d283dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48ce",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 206
  },
  "hsl": {
    "h": 291.045,
    "s": 57.759,
    "l": 54.51
  },
  "oklch": {
    "l": 0.60775,
    "c": 0.21567,
    "h": 321.4
  },
  "luminance": 0.1953
}

Semantic roles & 50–950 ramp

primary
#BA48CE
secondary
#A5D59D
accent
#E1475E
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #BA48CE

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

Preview Lab → · Contrast checker → · Palette generator →

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