#BA48A2#BA48A2

#BA48A2 is a mid, vivid pink. Relative luminance 0.177; OKLCH L 58.5% C 0.179 H 336.8°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BA48A2
RGBrgb(186, 72, 162)
HSLhsl(313, 45%, 51%)
HSVhsv(313, 61%, 73%)
CMYKcmyk(0%, 61.3%, 12.9%, 27.1%)
CIE-LABlab(49.11, 56.30, -26.11)
CIE-LCHlch(49.11, 62.06, 335.12°)
OKLaboklab(58.47% 0.1648 -0.0708)
OKLCHoklch(58.47% 0.179 336.8)
XYZxyz(29.0890, 17.6848, 36.0569)
Luminance0.1768 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48A2 #48BA60
analogous
#9948BA #BA48A2 #BA4869
triadic
#BA48A2 #A2BA48 #48A2BA
tetradic
#BA48A2 #BA9948 #48BA60 #4869BA
square
#BA48A2 #BA9948 #48BA60 #4869BA
split-complementary
#BA48A2 #69BA48 #48BA99
monochromatic
#622556 #8F367C #BA48A2 #CB74B9 #DCA1CF

Accessibility & contrast

On white

4.63
#BA48A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#BA48A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA48A2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48A2#FFFFFF#000000##FFFFFF
##BA48A21.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6AA5
Deuteranopia (green-blind)
#6D7B9F
Tritanopia (blue-blind)
#C34D6E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba48a2;
/* rgb */ color: rgb(186, 72, 162);
/* oklch */ color: oklch(58.5% 0.179 336.8);
Tailwind
colors: {
  custom: {
    50: '#d282bd',
    500: '#ba48a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba48a2;
$custom-light: #d282bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48a2",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 162
  },
  "hsl": {
    "h": 312.632,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58469,
    "c": 0.17939,
    "h": 336.8
  },
  "luminance": 0.17682
}

Semantic roles & 50–950 ramp

primary
#BA48A2
secondary
#96C8A0
accent
#D56E53
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA48A2

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

Preview Lab → · Contrast checker → · Palette generator →

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