#BA48AE#BA48AE

#BA48AE is a mid, vivid purple. Relative luminance 0.181; OKLCH L 59.0% C 0.189 H 332.0°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BA48AE
RGBrgb(186, 72, 174)
HSLhsl(306, 45%, 51%)
HSVhsv(306, 61%, 73%)
CMYKcmyk(0%, 61.3%, 6.5%, 27.1%)
CIE-LABlab(49.66, 58.21, -32.33)
CIE-LCHlch(49.66, 66.59, 330.96°)
OKLaboklab(59.05% 0.1666 -0.0885)
OKLCHoklch(59.05% 0.189 332)
XYZxyz(30.2070, 18.1320, 41.9450)
Luminance0.1813 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48AE #48BA54
analogous
#8D48BA #BA48AE #BA4875
triadic
#BA48AE #AEBA48 #48AEBA
tetradic
#BA48AE #BA8D48 #48BA54 #4875BA
square
#BA48AE #BA8D48 #48BA54 #4875BA
split-complementary
#BA48AE #75BA48 #48BA8D
monochromatic
#62255C #8F3686 #BA48AE #CB74C2 #DCA1D5

Accessibility & contrast

On white

4.54
#BA48AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#BA48AE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48AE
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48AE#FFFFFF#000000##000000
##BA48AE1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#436CB1
Deuteranopia (green-blind)
#687CAB
Tritanopia (blue-blind)
#C15274
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba48ae;
/* rgb */ color: rgb(186, 72, 174);
/* oklch */ color: oklch(59.0% 0.189 332.0);
Tailwind
colors: {
  custom: {
    50: '#d282c6',
    500: '#ba48ae',
    950: '#000000',
  },
}
SCSS
$custom: #ba48ae;
$custom-light: #d282c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48ae",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 174
  },
  "hsl": {
    "h": 306.316,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59045,
    "c": 0.18863,
    "h": 332
  },
  "luminance": 0.1813
}

Semantic roles & 50–950 ramp

primary
#BA48AE
secondary
#96C89B
accent
#D56153
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA48AE

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

Preview Lab → · Contrast checker → · Palette generator →

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