#BA48ED#BA48ED

#BA48ED is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.7% C 0.243 H 313.2°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#BA48ED
RGBrgb(186, 72, 237)
HSLhsl(281, 82%, 61%)
HSVhsv(281, 70%, 93%)
CMYKcmyk(21.5%, 69.6%, 0%, 7.1%)
CIE-LABlab(53.16, 69.77, -62.88)
CIE-LCHlch(53.16, 93.92, 317.98°)
OKLaboklab(62.7% 0.1668 -0.1774)
OKLCHoklch(62.7% 0.244 313.2)
XYZxyz(37.8504, 21.1894, 82.2004)
Luminance0.2119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48ED #7BED48
analogous
#6848ED #BA48ED #ED48CD
triadic
#BA48ED #EDBA48 #48EDBA
tetradic
#BA48ED #ED6848 #7BED48 #48CDED
square
#BA48ED #ED6848 #7BED48 #48CDED
split-complementary
#BA48ED #CDED48 #48ED68
monochromatic
#7B11AA #A316E2 #BA48ED #CF80F2 #E4B7F8

Accessibility & contrast

On white

4.01
#BA48ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#BA48ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48ED
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48ED#FFFFFF#000000##000000
##BA48ED1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F2
Deuteranopia (green-blind)
#3B81E9
Tritanopia (blue-blind)
#B56B96
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba48ed;
/* rgb */ color: rgb(186, 72, 237);
/* oklch */ color: oklch(62.7% 0.243 313.2);
Tailwind
colors: {
  custom: {
    50: '#d384f4',
    500: '#ba48ed',
    950: '#000000',
  },
}
SCSS
$custom: #ba48ed;
$custom-light: #d384f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48ed",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 237
  },
  "hsl": {
    "h": 281.455,
    "s": 82.09,
    "l": 60.588
  },
  "oklch": {
    "l": 0.62696,
    "c": 0.2435,
    "h": 313.2
  },
  "luminance": 0.21188
}

Semantic roles & 50–950 ramp

primary
#BA48ED
secondary
#BCE8A9
accent
#DE074A
background
#FDF8FF
surface
#FBF0FE
border
#D4CBD6
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA48ED

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

Preview Lab → · Contrast checker → · Palette generator →

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