#BA48AF#BA48AF

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

Color values

HEX#BA48AF
RGBrgb(186, 72, 175)
HSLhsl(306, 45%, 51%)
HSVhsv(306, 61%, 73%)
CMYKcmyk(0%, 61.3%, 5.9%, 27.1%)
CIE-LABlab(49.70, 58.38, -32.84)
CIE-LCHlch(49.70, 66.98, 330.64°)
OKLaboklab(59.1% 0.1667 -0.09)
OKLCHoklch(59.1% 0.189 331.6)
XYZxyz(30.3049, 18.1712, 42.4604)
Luminance0.1817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48AF #48BA53
analogous
#8C48BA #BA48AF #BA4876
triadic
#BA48AF #AFBA48 #48AFBA
tetradic
#BA48AF #BA8C48 #48BA53 #4876BA
square
#BA48AF #BA8C48 #48BA53 #4876BA
split-complementary
#BA48AF #76BA48 #48BA8C
monochromatic
#62255D #8F3686 #BA48AF #CB74C2 #DCA1D6

Accessibility & contrast

On white

4.53
#BA48AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA48AF#FFFFFF#000000##000000
##BA48AF1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#426CB2
Deuteranopia (green-blind)
#687CAC
Tritanopia (blue-blind)
#C15275
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba48af;
/* rgb */ color: rgb(186, 72, 175);
/* oklch */ color: oklch(59.1% 0.189 331.6);
Tailwind
colors: {
  custom: {
    50: '#d282c7',
    500: '#ba48af',
    950: '#000000',
  },
}
SCSS
$custom: #ba48af;
$custom-light: #d282c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48af",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 175
  },
  "hsl": {
    "h": 305.789,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59095,
    "c": 0.18943,
    "h": 331.6
  },
  "luminance": 0.18169
}

Semantic roles & 50–950 ramp

primary
#BA48AF
secondary
#96C89A
accent
#D55F53
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA48AF

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

Preview Lab → · Contrast checker → · Palette generator →

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