#BA48D2#BA48D2

#BA48D2 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.0% C 0.219 H 320.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA48D2
RGBrgb(186, 72, 210)
HSLhsl(290, 61%, 55%)
HSVhsv(290, 66%, 82%)
CMYKcmyk(11.4%, 65.7%, 0%, 17.6%)
CIE-LABlab(51.53, 64.55, -50.20)
CIE-LCHlch(51.53, 81.77, 322.13°)
OKLaboklab(61.01% 0.1685 -0.1403)
OKLCHoklch(61.01% 0.219 320.2)
XYZxyz(34.1985, 19.7286, 62.9669)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48D2 #60D248
analogous
#7548D2 #BA48D2 #D248A5
triadic
#BA48D2 #D2BA48 #48D2BA
tetradic
#BA48D2 #D27548 #60D248 #48A5D2
square
#BA48D2 #D27548 #60D248 #48A5D2
split-complementary
#BA48D2 #A5D248 #48D275
monochromatic
#6F2080 #9A2CB1 #BA48D2 #CD79DE #DFAAEA

Accessibility & contrast

On white

4.25
#BA48D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#BA48D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48D2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48D2#FFFFFF#000000##000000
##BA48D21.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B73D6
Deuteranopia (green-blind)
#547FCF
Tritanopia (blue-blind)
#BB6087
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba48d2;
/* rgb */ color: rgb(186, 72, 210);
/* oklch */ color: oklch(61.0% 0.219 320.2);
Tailwind
colors: {
  custom: {
    50: '#d283e0',
    500: '#ba48d2',
    950: '#000000',
  },
}
SCSS
$custom: #ba48d2;
$custom-light: #d283e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48d2",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 210
  },
  "hsl": {
    "h": 289.565,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.6101,
    "c": 0.21921,
    "h": 320.2
  },
  "luminance": 0.19727
}

Semantic roles & 50–950 ramp

primary
#BA48D2
secondary
#A8D89E
accent
#E44460
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA48D2

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

Preview Lab → · Contrast checker → · Palette generator →

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