#BA48DB#BA48DB

#BA48DB is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.227 H 317.7°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BA48DB
RGBrgb(186, 72, 219)
HSLhsl(287, 67%, 57%)
HSVhsv(287, 67%, 86%)
CMYKcmyk(15.1%, 67.1%, 0%, 14.1%)
CIE-LABlab(52.05, 66.25, -54.49)
CIE-LCHlch(52.05, 85.78, 320.56°)
OKLaboklab(61.55% 0.1682 -0.1528)
OKLCHoklch(61.55% 0.227 317.7)
XYZxyz(35.3514, 20.1898, 69.0390)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48DB #69DB48
analogous
#7148DB #BA48DB #DB48B2
triadic
#BA48DB #DBBA48 #48DBBA
tetradic
#BA48DB #DB7148 #69DB48 #48B2DB
square
#BA48DB #DB7148 #69DB48 #48B2DB
split-complementary
#BA48DB #B2DB48 #48DB71
monochromatic
#731C8D #9D26C0 #BA48DB #CD7BE5 #E1AEEF

Accessibility & contrast

On white

4.17
#BA48DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#BA48DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48DB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48DB#FFFFFF#000000##000000
##BA48DB1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075DF
Deuteranopia (green-blind)
#4D80D8
Tritanopia (blue-blind)
#B9648C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba48db;
/* rgb */ color: rgb(186, 72, 219);
/* oklch */ color: oklch(61.6% 0.227 317.7);
Tailwind
colors: {
  custom: {
    50: '#d383e7',
    500: '#ba48db',
    950: '#000000',
  },
}
SCSS
$custom: #ba48db;
$custom-light: #d383e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48db",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 286.531,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61553,
    "c": 0.22723,
    "h": 317.7
  },
  "luminance": 0.20188
}

Semantic roles & 50–950 ramp

primary
#BA48DB
secondary
#AFDDA2
accent
#EA3E64
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA48DB

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

Preview Lab → · Contrast checker → · Palette generator →

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