#BA48EB#BA48EB

#BA48EB is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.6% C 0.242 H 313.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA48EB
RGBrgb(186, 72, 235)
HSLhsl(282, 80%, 60%)
HSVhsv(282, 69%, 92%)
CMYKcmyk(20.9%, 69.4%, 0%, 7.8%)
CIE-LABlab(53.03, 69.37, -61.96)
CIE-LCHlch(53.03, 93.01, 318.23°)
OKLaboklab(62.57% 0.167 -0.1747)
OKLCHoklch(62.57% 0.242 313.7)
XYZxyz(37.5599, 21.0732, 80.6701)
Luminance0.2107 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48EB #79EB48
analogous
#6848EB #BA48EB #EB48CB
triadic
#BA48EB #EBBA48 #48EBBA
tetradic
#BA48EB #EB6848 #79EB48 #48CBEB
square
#BA48EB #EB6848 #79EB48 #48CBEB
split-complementary
#BA48EB #CBEB48 #48EB68
monochromatic
#7A12A6 #A218DE #BA48EB #CF7FF1 #E4B6F7

Accessibility & contrast

On white

4.03
#BA48EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#BA48EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48EB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48EB#FFFFFF#000000##000000
##BA48EB1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F0
Deuteranopia (green-blind)
#3D81E7
Tritanopia (blue-blind)
#B56A95
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba48eb;
/* rgb */ color: rgb(186, 72, 235);
/* oklch */ color: oklch(62.6% 0.242 313.7);
Tailwind
colors: {
  custom: {
    50: '#d384f2',
    500: '#ba48eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba48eb;
$custom-light: #d384f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48eb",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 235
  },
  "hsl": {
    "h": 281.963,
    "s": 80.296,
    "l": 60.196
  },
  "oklch": {
    "l": 0.62565,
    "c": 0.24168,
    "h": 313.7
  },
  "luminance": 0.21072
}

Semantic roles & 50–950 ramp

primary
#BA48EB
secondary
#BBE7A8
accent
#DD0949
background
#FDF8FE
surface
#FBF0FD
border
#D4CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA48EB

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

Preview Lab → · Contrast checker → · Palette generator →

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