#BA48D9#BA48D9

#BA48D9 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.4% C 0.225 H 318.3°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BA48D9
RGBrgb(186, 72, 217)
HSLhsl(287, 66%, 57%)
HSVhsv(287, 67%, 85%)
CMYKcmyk(14.3%, 66.8%, 0%, 14.9%)
CIE-LABlab(51.93, 65.87, -53.54)
CIE-LCHlch(51.93, 84.89, 320.89°)
OKLaboklab(61.43% 0.1683 -0.15)
OKLCHoklch(61.43% 0.225 318.3)
XYZxyz(35.0897, 20.0851, 67.6607)
Luminance0.2008 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48D9 #67D948
analogous
#7248D9 #BA48D9 #D948B0
triadic
#BA48D9 #D9BA48 #48D9BA
tetradic
#BA48D9 #D97248 #67D948 #48B0D9
square
#BA48D9 #D97248 #67D948 #48B0D9
split-complementary
#BA48D9 #B0D948 #48D972
monochromatic
#731D8A #9D27BD #BA48D9 #CD7BE4 #E0ADEE

Accessibility & contrast

On white

4.19
#BA48D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#BA48D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48D9
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48D9#FFFFFF#000000##000000
##BA48D91.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0374DD
Deuteranopia (green-blind)
#4F7FD6
Tritanopia (blue-blind)
#B9638B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba48d9;
/* rgb */ color: rgb(186, 72, 217);
/* oklch */ color: oklch(61.4% 0.225 318.3);
Tailwind
colors: {
  custom: {
    50: '#d283e5',
    500: '#ba48d9',
    950: '#000000',
  },
}
SCSS
$custom: #ba48d9;
$custom-light: #d283e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48d9",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 217
  },
  "hsl": {
    "h": 287.172,
    "s": 65.611,
    "l": 56.667
  },
  "oklch": {
    "l": 0.6143,
    "c": 0.22544,
    "h": 318.3
  },
  "luminance": 0.20084
}

Semantic roles & 50–950 ramp

primary
#BA48D9
secondary
#ADDCA1
accent
#E93F63
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA48D9

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

Preview Lab → · Contrast checker → · Palette generator →

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