#BA48CA#BA48CA

#BA48CA is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.5% C 0.212 H 322.6°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#BA48CA
RGBrgb(186, 72, 202)
HSLhsl(293, 55%, 54%)
HSVhsv(293, 64%, 79%)
CMYKcmyk(7.9%, 64.4%, 0%, 20.8%)
CIE-LABlab(51.08, 63.08, -46.33)
CIE-LCHlch(51.08, 78.26, 323.70°)
OKLaboklab(60.54% 0.1685 -0.129)
OKLCHoklch(60.54% 0.212 322.6)
XYZxyz(33.2267, 19.3399, 57.8485)
Luminance0.1934 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48CA #58CA48
analogous
#7948CA #BA48CA #CA4899
triadic
#BA48CA #CABA48 #48CABA
tetradic
#BA48CA #CA7948 #58CA48 #4899CA
square
#BA48CA #CA7948 #58CA48 #4899CA
split-complementary
#BA48CA #99CA48 #48CA79
monochromatic
#6B2276 #9730A5 #BA48CA #CC77D8 #DEA7E5

Accessibility & contrast

On white

4.31
#BA48CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#BA48CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48CA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48CA#FFFFFF#000000##000000
##BA48CA1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2971CE
Deuteranopia (green-blind)
#5A7EC7
Tritanopia (blue-blind)
#BD5D83
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba48ca;
/* rgb */ color: rgb(186, 72, 202);
/* oklch */ color: oklch(60.5% 0.212 322.6);
Tailwind
colors: {
  custom: {
    50: '#d283db',
    500: '#ba48ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba48ca;
$custom-light: #d283db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48ca",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 292.615,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.60544,
    "c": 0.21217,
    "h": 322.6
  },
  "luminance": 0.19338
}

Semantic roles & 50–950 ramp

primary
#BA48CA
secondary
#A2D39B
accent
#DE495C
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #BA48CA

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

Preview Lab → · Contrast checker → · Palette generator →

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