#BA48DC#BA48DC

#BA48DC is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.228 H 317.5°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA48DC
RGBrgb(186, 72, 220)
HSLhsl(286, 68%, 57%)
HSVhsv(286, 67%, 86%)
CMYKcmyk(15.5%, 67.3%, 0%, 13.7%)
CIE-LABlab(52.11, 66.45, -54.96)
CIE-LCHlch(52.11, 86.23, 320.40°)
OKLaboklab(61.61% 0.1681 -0.1542)
OKLCHoklch(61.61% 0.228 317.5)
XYZxyz(35.4835, 20.2426, 69.7344)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48DC #6ADC48
analogous
#7048DC #BA48DC #DC48B4
triadic
#BA48DC #DCBA48 #48DCBA
tetradic
#BA48DC #DC7048 #6ADC48 #48B4DC
square
#BA48DC #DC7048 #6ADC48 #48B4DC
split-complementary
#BA48DC #B4DC48 #48DC70
monochromatic
#741B8E #9E25C2 #BA48DC #CD7BE6 #E1AFF0

Accessibility & contrast

On white

4.16
#BA48DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#BA48DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48DC
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48DC#FFFFFF#000000##000000
##BA48DC1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E0
Deuteranopia (green-blind)
#4C80D9
Tritanopia (blue-blind)
#B9648D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba48dc;
/* rgb */ color: rgb(186, 72, 220);
/* oklch */ color: oklch(61.6% 0.228 317.5);
Tailwind
colors: {
  custom: {
    50: '#d383e7',
    500: '#ba48dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba48dc;
$custom-light: #d383e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48dc",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 220
  },
  "hsl": {
    "h": 286.216,
    "s": 67.89,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61614,
    "c": 0.22813,
    "h": 317.5
  },
  "luminance": 0.20241
}

Semantic roles & 50–950 ramp

primary
#BA48DC
secondary
#B0DEA2
accent
#EB3D65
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA48DC

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

Preview Lab → · Contrast checker → · Palette generator →

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