#BA48E0#BA48E0

#BA48E0 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.9% C 0.232 H 316.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA48E0
RGBrgb(186, 72, 224)
HSLhsl(285, 71%, 58%)
HSVhsv(285, 68%, 88%)
CMYKcmyk(17%, 67.9%, 0%, 12.2%)
CIE-LABlab(52.35, 67.22, -56.85)
CIE-LCHlch(52.35, 88.03, 319.78°)
OKLaboklab(61.86% 0.1679 -0.1597)
OKLCHoklch(61.86% 0.232 316.4)
XYZxyz(36.0196, 20.4571, 72.5578)
Luminance0.2046 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48E0 #6EE048
analogous
#6E48E0 #BA48E0 #E048BA
triadic
#BA48E0 #E0BA48 #48E0BA
tetradic
#BA48E0 #E06E48 #6EE048 #48BAE0
square
#BA48E0 #E06E48 #6EE048 #48BAE0
split-complementary
#BA48E0 #BAE048 #48E06E
monochromatic
#761994 #9F22C9 #BA48E0 #CE7CE9 #E1B1F2

Accessibility & contrast

On white

4.12
#BA48E0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#BA48E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48E0
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48E0#FFFFFF#000000##000000
##BA48E01.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E4
Deuteranopia (green-blind)
#4980DC
Tritanopia (blue-blind)
#B8668F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba48e0;
/* rgb */ color: rgb(186, 72, 224);
/* oklch */ color: oklch(61.9% 0.232 316.4);
Tailwind
colors: {
  custom: {
    50: '#d384ea',
    500: '#ba48e0',
    950: '#000000',
  },
}
SCSS
$custom: #ba48e0;
$custom-light: #d384ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48e0",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 224
  },
  "hsl": {
    "h": 285,
    "s": 71.028,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61863,
    "c": 0.23173,
    "h": 316.4
  },
  "luminance": 0.20456
}

Semantic roles & 50–950 ramp

primary
#BA48E0
secondary
#B3E0A4
accent
#EE3A67
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA48E0

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

Preview Lab → · Contrast checker → · Palette generator →

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