#BA48D8#BA48D8

#BA48D8 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.4% C 0.225 H 318.5°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#BA48D8
RGBrgb(186, 72, 216)
HSLhsl(288, 65%, 56%)
HSVhsv(288, 67%, 85%)
CMYKcmyk(13.9%, 66.7%, 0%, 15.3%)
CIE-LABlab(51.87, 65.68, -53.07)
CIE-LCHlch(51.87, 84.44, 321.06°)
OKLaboklab(61.37% 0.1683 -0.1487)
OKLCHoklch(61.37% 0.225 318.5)
XYZxyz(34.9601, 20.0333, 66.9777)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48D8 #66D848
analogous
#7248D8 #BA48D8 #D848AE
triadic
#BA48D8 #D8BA48 #48D8BA
tetradic
#BA48D8 #D87248 #66D848 #48AED8
square
#BA48D8 #D87248 #66D848 #48AED8
split-complementary
#BA48D8 #AED848 #48D872
monochromatic
#721D89 #9C28BB #BA48D8 #CD7AE3 #E0ADEE

Accessibility & contrast

On white

4.19
#BA48D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#BA48D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48D8
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48D8#FFFFFF#000000##000000
##BA48D81.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0874DC
Deuteranopia (green-blind)
#507FD5
Tritanopia (blue-blind)
#BA628A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba48d8;
/* rgb */ color: rgb(186, 72, 216);
/* oklch */ color: oklch(61.4% 0.225 318.5);
Tailwind
colors: {
  custom: {
    50: '#d283e5',
    500: '#ba48d8',
    950: '#000000',
  },
}
SCSS
$custom: #ba48d8;
$custom-light: #d283e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48d8",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 216
  },
  "hsl": {
    "h": 287.5,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61369,
    "c": 0.22455,
    "h": 318.5
  },
  "luminance": 0.20032
}

Semantic roles & 50–950 ramp

primary
#BA48D8
secondary
#ADDBA0
accent
#E84063
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA48D8

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

Preview Lab → · Contrast checker → · Palette generator →

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