#BA318D#BA318D

#BA318D is a mid, vivid pink. Relative luminance 0.146; OKLCH L 55.2% C 0.195 H 344.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#BA318D
RGBrgb(186, 49, 141)
HSLhsl(320, 58%, 46%)
HSVhsv(320, 74%, 73%)
CMYKcmyk(0%, 73.7%, 24.2%, 27.1%)
CIE-LABlab(45.03, 62.18, -19.85)
CIE-LCHlch(45.03, 65.27, 342.29°)
OKLaboklab(55.2% 0.1879 -0.0529)
OKLCHoklch(55.2% 0.195 344.3)
XYZxyz(26.1568, 14.5616, 26.6273)
Luminance0.1456 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA318D #31BA5E
analogous
#A231BA #BA318D #BA3148
triadic
#BA318D #8DBA31 #318DBA
tetradic
#BA318D #BAA231 #31BA5E #3148BA
square
#BA318D #BAA231 #31BA5E #3148BA
split-complementary
#BA318D #48BA31 #31BAA2
monochromatic
#591744 #8A2468 #BA318D #D256A9 #DF86C2

Accessibility & contrast

On white

5.37
#BA318D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#BA318D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA318D
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA318D#FFFFFF#000000##FFFFFF
##BA318D1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415C90
Deuteranopia (green-blind)
#6B738A
Tritanopia (blue-blind)
#C6305B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba318d;
/* rgb */ color: rgb(186, 49, 141);
/* oklch */ color: oklch(55.2% 0.195 344.3);
Tailwind
colors: {
  custom: {
    50: '#d376ae',
    500: '#ba318d',
    950: '#000000',
  },
}
SCSS
$custom: #ba318d;
$custom-light: #d376ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ba318d",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 319.708,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55195,
    "c": 0.19517,
    "h": 344.3
  },
  "luminance": 0.14559
}

Semantic roles & 50–950 ramp

primary
#BA318D
secondary
#7EC997
accent
#E27946
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA318D

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

Preview Lab → · Contrast checker → · Palette generator →

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