#BA3181#BA3181

#BA3181 is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.7% C 0.188 H 349.4°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#BA3181
RGBrgb(186, 49, 129)
HSLhsl(325, 58%, 46%)
HSVhsv(325, 74%, 73%)
CMYKcmyk(0%, 73.7%, 30.6%, 27.1%)
CIE-LABlab(44.55, 60.69, -13.27)
CIE-LCHlch(44.55, 62.12, 347.66°)
OKLaboklab(54.69% 0.1852 -0.0347)
OKLCHoklch(54.69% 0.188 349.4)
XYZxyz(25.3118, 14.2236, 22.1771)
Luminance0.1422 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3181 #31BA6A
analogous
#AE31BA #BA3181 #BA313C
triadic
#BA3181 #81BA31 #3181BA
tetradic
#BA3181 #BAAE31 #31BA6A #313CBA
square
#BA3181 #BAAE31 #31BA6A #313CBA
split-complementary
#BA3181 #3CBA31 #31BAAE
monochromatic
#59173E #8A245F #BA3181 #D2569F #DF86BA

Accessibility & contrast

On white

5.46
#BA3181 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#BA3181 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3181
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3181#FFFFFF#000000##FFFFFF
##BA31811.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475A83
Deuteranopia (green-blind)
#6E727E
Tritanopia (blue-blind)
#C82955
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba3181;
/* rgb */ color: rgb(186, 49, 129);
/* oklch */ color: oklch(54.7% 0.188 349.4);
Tailwind
colors: {
  custom: {
    50: '#d376a5',
    500: '#ba3181',
    950: '#000000',
  },
}
SCSS
$custom: #ba3181;
$custom-light: #d376a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3181",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 324.964,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54693,
    "c": 0.18847,
    "h": 349.4
  },
  "luminance": 0.14221
}

Semantic roles & 50–950 ramp

primary
#BA3181
secondary
#7EC99D
accent
#E28746
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#15090F
muted
#837B7F

Preview Lab

Preview with #BA3181

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

Preview Lab → · Contrast checker → · Palette generator →

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