#BA48BE#BA48BE

#BA48BE is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 59.9% C 0.202 H 326.4°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#BA48BE
RGBrgb(186, 72, 190)
HSLhsl(298, 48%, 51%)
HSVhsv(298, 62%, 75%)
CMYKcmyk(2.1%, 62.1%, 0%, 25.5%)
CIE-LABlab(50.44, 60.93, -40.41)
CIE-LCHlch(50.44, 73.11, 326.45°)
OKLaboklab(59.88% 0.168 -0.1118)
OKLCHoklch(59.88% 0.202 326.4)
XYZxyz(31.8607, 18.7935, 50.6546)
Luminance0.1879 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48BE #4CBE48
analogous
#7F48BE #BA48BE #BE4887
triadic
#BA48BE #BEBA48 #48BEBA
tetradic
#BA48BE #BE7F48 #4CBE48 #4887BE
square
#BA48BE #BE7F48 #4CBE48 #4887BE
split-complementary
#BA48BE #87BE48 #48BE7F
monochromatic
#652567 #913594 #BA48BE #CB75CE #DCA2DE

Accessibility & contrast

On white

4.41
#BA48BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#BA48BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48BE
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48BE#FFFFFF#000000##000000
##BA48BE1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#366FC2
Deuteranopia (green-blind)
#617DBB
Tritanopia (blue-blind)
#BF587D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba48be;
/* rgb */ color: rgb(186, 72, 190);
/* oklch */ color: oklch(59.9% 0.202 326.4);
Tailwind
colors: {
  custom: {
    50: '#d283d2',
    500: '#ba48be',
    950: '#000000',
  },
}
SCSS
$custom: #ba48be;
$custom-light: #d283d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48be",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 190
  },
  "hsl": {
    "h": 297.966,
    "s": 47.581,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59876,
    "c": 0.20182,
    "h": 326.4
  },
  "luminance": 0.18792
}

Semantic roles & 50–950 ramp

primary
#BA48BE
secondary
#99CB97
accent
#D75155
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA48BE

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

Preview Lab → · Contrast checker → · Palette generator →

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