#BA48E1#BA48E1

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

Color values

HEX#BA48E1
RGBrgb(186, 72, 225)
HSLhsl(285, 72%, 58%)
HSVhsv(285, 68%, 88%)
CMYKcmyk(17.3%, 68%, 0%, 11.8%)
CIE-LABlab(52.41, 67.41, -57.31)
CIE-LCHlch(52.41, 88.48, 319.63°)
OKLaboklab(61.93% 0.1678 -0.1611)
OKLCHoklch(61.93% 0.233 316.2)
XYZxyz(36.1556, 20.5115, 73.2741)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48E1 #6FE148
analogous
#6D48E1 #BA48E1 #E148BB
triadic
#BA48E1 #E1BA48 #48E1BA
tetradic
#BA48E1 #E16D48 #6FE148 #48BBE1
square
#BA48E1 #E16D48 #6FE148 #48BBE1
split-complementary
#BA48E1 #BBE148 #48E16D
monochromatic
#761996 #9F21CB #BA48E1 #CE7DEA #E2B1F2

Accessibility & contrast

On white

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

On black

5.10
#BA48E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48E1
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48E1#FFFFFF#000000##000000
##BA48E11.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E5
Deuteranopia (green-blind)
#4880DD
Tritanopia (blue-blind)
#B8668F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba48e1;
/* rgb */ color: rgb(186, 72, 225);
/* oklch */ color: oklch(61.9% 0.233 316.2);
Tailwind
colors: {
  custom: {
    50: '#d384eb',
    500: '#ba48e1',
    950: '#000000',
  },
}
SCSS
$custom: #ba48e1;
$custom-light: #d384eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48e1",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 225
  },
  "hsl": {
    "h": 284.706,
    "s": 71.831,
    "l": 58.235
  },
  "oklch": {
    "l": 0.61925,
    "c": 0.23263,
    "h": 316.2
  },
  "luminance": 0.2051
}

Semantic roles & 50–950 ramp

primary
#BA48E1
secondary
#B3E1A4
accent
#EF3967
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA48E1

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

Preview Lab → · Contrast checker → · Palette generator →

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