#BA318C#BA318C

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

Color values

HEX#BA318C
RGBrgb(186, 49, 140)
HSLhsl(320, 58%, 46%)
HSVhsv(320, 74%, 73%)
CMYKcmyk(0%, 73.7%, 24.7%, 27.1%)
CIE-LABlab(44.99, 62.05, -19.31)
CIE-LCHlch(44.99, 64.98, 342.72°)
OKLaboklab(55.15% 0.1877 -0.0514)
OKLCHoklch(55.15% 0.195 344.7)
XYZxyz(26.0827, 14.5320, 26.2372)
Luminance0.1453 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA318C #31BA5F
analogous
#A331BA #BA318C #BA3147
triadic
#BA318C #8CBA31 #318CBA
tetradic
#BA318C #BAA331 #31BA5F #3147BA
square
#BA318C #BAA331 #31BA5F #3147BA
split-complementary
#BA318C #47BA31 #31BAA3
monochromatic
#591743 #8A2468 #BA318C #D256A9 #DF86C1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA318C#FFFFFF#000000##FFFFFF
##BA318C1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415C8E
Deuteranopia (green-blind)
#6B7389
Tritanopia (blue-blind)
#C62F5A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba318c;
/* rgb */ color: rgb(186, 49, 140);
/* oklch */ color: oklch(55.2% 0.195 344.7);
Tailwind
colors: {
  custom: {
    50: '#d376ad',
    500: '#ba318c',
    950: '#000000',
  },
}
SCSS
$custom: #ba318c;
$custom-light: #d376ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba318c",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 320.146,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55151,
    "c": 0.19458,
    "h": 344.7
  },
  "luminance": 0.14529
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA318C

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

Preview Lab → · Contrast checker → · Palette generator →

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