#BA318E#BA318E

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

Color values

HEX#BA318E
RGBrgb(186, 49, 142)
HSLhsl(319, 58%, 46%)
HSVhsv(319, 74%, 73%)
CMYKcmyk(0%, 73.7%, 23.7%, 27.1%)
CIE-LABlab(45.07, 62.30, -20.39)
CIE-LCHlch(45.07, 65.56, 341.88°)
OKLaboklab(55.24% 0.188 -0.0544)
OKLCHoklch(55.24% 0.196 343.9)
XYZxyz(26.2315, 14.5915, 27.0209)
Luminance0.1459 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA318E #31BA5D
analogous
#A131BA #BA318E #BA3149
triadic
#BA318E #8EBA31 #318EBA
tetradic
#BA318E #BAA131 #31BA5D #3149BA
square
#BA318E #BAA131 #31BA5D #3149BA
split-complementary
#BA318E #49BA31 #31BAA1
monochromatic
#591744 #8A2469 #BA318E #D256AA #DF86C3

Accessibility & contrast

On white

5.36
#BA318E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA318E
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA318E#FFFFFF#000000##FFFFFF
##BA318E1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405C91
Deuteranopia (green-blind)
#6A738B
Tritanopia (blue-blind)
#C6305B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba318e;
/* rgb */ color: rgb(186, 49, 142);
/* oklch */ color: oklch(55.2% 0.196 343.9);
Tailwind
colors: {
  custom: {
    50: '#d376af',
    500: '#ba318e',
    950: '#000000',
  },
}
SCSS
$custom: #ba318e;
$custom-light: #d376af;
$custom-dark: #000000;
JSON
{
  "hex": "#ba318e",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 319.27,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55239,
    "c": 0.19576,
    "h": 343.9
  },
  "luminance": 0.14589
}

Semantic roles & 50–950 ramp

primary
#BA318E
secondary
#7EC996
accent
#E27846
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA318E

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

Preview Lab → · Contrast checker → · Palette generator →

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