#BA318B#BA318B

#BA318B is a mid, vivid pink. Relative luminance 0.145; OKLCH L 55.1% C 0.194 H 345.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#BA318B
RGBrgb(186, 49, 139)
HSLhsl(321, 58%, 46%)
HSVhsv(321, 74%, 73%)
CMYKcmyk(0%, 73.7%, 25.3%, 27.1%)
CIE-LABlab(44.95, 61.92, -18.76)
CIE-LCHlch(44.95, 64.70, 343.14°)
OKLaboklab(55.11% 0.1875 -0.0499)
OKLCHoklch(55.11% 0.194 345.1)
XYZxyz(26.0093, 14.5026, 25.8506)
Luminance0.1450 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA318B #31BA60
analogous
#A431BA #BA318B #BA3146
triadic
#BA318B #8BBA31 #318BBA
tetradic
#BA318B #BAA431 #31BA60 #3146BA
square
#BA318B #BAA431 #31BA60 #3146BA
split-complementary
#BA318B #46BA31 #31BAA4
monochromatic
#591743 #8A2467 #BA318B #D256A8 #DF86C1

Accessibility & contrast

On white

5.38
#BA318B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#BA318B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA318B
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA318B#FFFFFF#000000##FFFFFF
##BA318B1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425C8D
Deuteranopia (green-blind)
#6B7388
Tritanopia (blue-blind)
#C72F5A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba318b;
/* rgb */ color: rgb(186, 49, 139);
/* oklch */ color: oklch(55.1% 0.194 345.1);
Tailwind
colors: {
  custom: {
    50: '#d376ad',
    500: '#ba318b',
    950: '#000000',
  },
}
SCSS
$custom: #ba318b;
$custom-light: #d376ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba318b",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 320.584,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55108,
    "c": 0.19399,
    "h": 345.1
  },
  "luminance": 0.145
}

Semantic roles & 50–950 ramp

primary
#BA318B
secondary
#7EC998
accent
#E27C46
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA318B

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

Preview Lab → · Contrast checker → · Palette generator →

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