#BA48E2#BA48E2

#BA48E2 is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 62.0% C 0.234 H 315.9°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA48E2
RGBrgb(186, 72, 226)
HSLhsl(284, 73%, 58%)
HSVhsv(284, 68%, 89%)
CMYKcmyk(17.7%, 68.1%, 0%, 11.4%)
CIE-LABlab(52.47, 67.60, -57.78)
CIE-LCHlch(52.47, 88.93, 319.48°)
OKLaboklab(61.99% 0.1678 -0.1625)
OKLCHoklch(61.99% 0.234 315.9)
XYZxyz(36.2924, 20.5662, 73.9947)
Luminance0.2056 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48E2 #70E248
analogous
#6D48E2 #BA48E2 #E248BD
triadic
#BA48E2 #E2BA48 #48E2BA
tetradic
#BA48E2 #E26D48 #70E248 #48BDE2
square
#BA48E2 #E26D48 #70E248 #48BDE2
split-complementary
#BA48E2 #BDE248 #48E26D
monochromatic
#761898 #A020CC #BA48E2 #CE7DEA #E2B2F3

Accessibility & contrast

On white

4.11
#BA48E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#BA48E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48E2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48E2#FFFFFF#000000##000000
##BA48E21.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E6
Deuteranopia (green-blind)
#4780DE
Tritanopia (blue-blind)
#B76690
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba48e2;
/* rgb */ color: rgb(186, 72, 226);
/* oklch */ color: oklch(62.0% 0.234 315.9);
Tailwind
colors: {
  custom: {
    50: '#d384ec',
    500: '#ba48e2',
    950: '#000000',
  },
}
SCSS
$custom: #ba48e2;
$custom-light: #d384ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48e2",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 226
  },
  "hsl": {
    "h": 284.416,
    "s": 72.642,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61988,
    "c": 0.23353,
    "h": 315.9
  },
  "luminance": 0.20565
}

Semantic roles & 50–950 ramp

primary
#BA48E2
secondary
#B4E1A4
accent
#EF3868
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA48E2

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

Preview Lab → · Contrast checker → · Palette generator →

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