#BA48D1#BA48D1

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

Color values

HEX#BA48D1
RGBrgb(186, 72, 209)
HSLhsl(290, 60%, 55%)
HSVhsv(290, 66%, 82%)
CMYKcmyk(11%, 65.6%, 0%, 18%)
CIE-LABlab(51.47, 64.37, -49.72)
CIE-LCHlch(51.47, 81.33, 322.32°)
OKLaboklab(60.95% 0.1685 -0.1389)
OKLCHoklch(60.95% 0.218 320.5)
XYZxyz(34.0743, 19.6790, 62.3128)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48D1 #5FD148
analogous
#7548D1 #BA48D1 #D148A3
triadic
#BA48D1 #D1BA48 #48D1BA
tetradic
#BA48D1 #D17548 #5FD148 #48A3D1
square
#BA48D1 #D17548 #5FD148 #48A3D1
split-complementary
#BA48D1 #A3D148 #48D175
monochromatic
#6F207F #9A2CB0 #BA48D1 #CC79DD #DFAAEA

Accessibility & contrast

On white

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

On black

4.94
#BA48D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48D1
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48D1#FFFFFF#000000##000000
##BA48D11.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D73D5
Deuteranopia (green-blind)
#557FCE
Tritanopia (blue-blind)
#BB6087
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba48d1;
/* rgb */ color: rgb(186, 72, 209);
/* oklch */ color: oklch(61.0% 0.218 320.5);
Tailwind
colors: {
  custom: {
    50: '#d283e0',
    500: '#ba48d1',
    950: '#000000',
  },
}
SCSS
$custom: #ba48d1;
$custom-light: #d283e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48d1",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 209
  },
  "hsl": {
    "h": 289.927,
    "s": 59.825,
    "l": 55.098
  },
  "oklch": {
    "l": 0.6095,
    "c": 0.21832,
    "h": 320.5
  },
  "luminance": 0.19677
}

Semantic roles & 50–950 ramp

primary
#BA48D1
secondary
#A7D79E
accent
#E3455F
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA48D1

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

Preview Lab → · Contrast checker → · Palette generator →

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