#BA48EF#BA48EF

#BA48EF is a light, highly saturated purple. Relative luminance 0.213; OKLCH L 62.8% C 0.245 H 312.8°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA48EF
RGBrgb(186, 72, 239)
HSLhsl(281, 84%, 61%)
HSVhsv(281, 70%, 94%)
CMYKcmyk(22.2%, 69.9%, 0%, 6.3%)
CIE-LABlab(53.28, 70.17, -63.79)
CIE-LCHlch(53.28, 94.83, 317.73°)
OKLaboklab(62.83% 0.1666 -0.1801)
OKLCHoklch(62.83% 0.245 312.8)
XYZxyz(38.1443, 21.3069, 83.7479)
Luminance0.2131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48EF #7DEF48
analogous
#6648EF #BA48EF #EF48D1
triadic
#BA48EF #EFBA48 #48EFBA
tetradic
#BA48EF #EF6648 #7DEF48 #48D1EF
square
#BA48EF #EF6648 #7DEF48 #48D1EF
split-complementary
#BA48EF #D1EF48 #48EF66
monochromatic
#7B0FAD #A314E6 #BA48EF #CF80F4 #E4B9F9

Accessibility & contrast

On white

3.99
#BA48EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#BA48EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48EF
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48EF#FFFFFF#000000##000000
##BA48EF1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F4
Deuteranopia (green-blind)
#3882EB
Tritanopia (blue-blind)
#B46C97
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba48ef;
/* rgb */ color: rgb(186, 72, 239);
/* oklch */ color: oklch(62.8% 0.245 312.8);
Tailwind
colors: {
  custom: {
    50: '#d384f5',
    500: '#ba48ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba48ef;
$custom-light: #d384f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48ef",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 239
  },
  "hsl": {
    "h": 280.958,
    "s": 83.92,
    "l": 60.98
  },
  "oklch": {
    "l": 0.62827,
    "c": 0.24533,
    "h": 312.8
  },
  "luminance": 0.21306
}

Semantic roles & 50–950 ramp

primary
#BA48EF
secondary
#BEE9AA
accent
#E0054B
background
#FDF8FF
surface
#FBF0FE
border
#D4CBD6
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA48EF

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

Preview Lab → · Contrast checker → · Palette generator →

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