#BA318F#BA318F

#BA318F is a mid, vivid pink. Relative luminance 0.146; OKLCH L 55.3% C 0.196 H 343.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#BA318F
RGBrgb(186, 49, 143)
HSLhsl(319, 58%, 46%)
HSVhsv(319, 74%, 73%)
CMYKcmyk(0%, 73.7%, 23.1%, 27.1%)
CIE-LABlab(45.11, 62.44, -20.93)
CIE-LCHlch(45.11, 65.85, 341.47°)
OKLaboklab(55.28% 0.1882 -0.056)
OKLCHoklch(55.28% 0.196 343.4)
XYZxyz(26.3069, 14.6216, 27.4181)
Luminance0.1462 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA318F #31BA5C
analogous
#A031BA #BA318F #BA314A
triadic
#BA318F #8FBA31 #318FBA
tetradic
#BA318F #BAA031 #31BA5C #314ABA
square
#BA318F #BAA031 #31BA5C #314ABA
split-complementary
#BA318F #4ABA31 #31BAA0
monochromatic
#591745 #8A246A #BA318F #D256AB #DF86C3

Accessibility & contrast

On white

5.35
#BA318F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#BA318F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA318F
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA318F#FFFFFF#000000##FFFFFF
##BA318F1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405C92
Deuteranopia (green-blind)
#6A738C
Tritanopia (blue-blind)
#C6315C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba318f;
/* rgb */ color: rgb(186, 49, 143);
/* oklch */ color: oklch(55.3% 0.196 343.4);
Tailwind
colors: {
  custom: {
    50: '#d376b0',
    500: '#ba318f',
    950: '#000000',
  },
}
SCSS
$custom: #ba318f;
$custom-light: #d376b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba318f",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 318.832,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55283,
    "c": 0.19636,
    "h": 343.4
  },
  "luminance": 0.14619
}

Semantic roles & 50–950 ramp

primary
#BA318F
secondary
#7EC995
accent
#E27746
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA318F

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

Preview Lab → · Contrast checker → · Palette generator →

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