#BA3A8B#BA3A8B

#BA3A8B is a mid, vivid pink. Relative luminance 0.153; OKLCH L 55.9% C 0.183 H 345.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BA3A8B
RGBrgb(186, 58, 139)
HSLhsl(322, 52%, 48%)
HSVhsv(322, 69%, 73%)
CMYKcmyk(0%, 68.8%, 25.3%, 27.1%)
CIE-LABlab(46.09, 58.72, -17.02)
CIE-LCHlch(46.09, 61.14, 343.84°)
OKLaboklab(55.94% 0.1776 -0.0451)
OKLCHoklch(55.94% 0.183 345.7)
XYZxyz(26.4240, 15.3320, 25.9889)
Luminance0.1533 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3A8B #3ABA69
analogous
#A93ABA #BA3A8B #BA3A4B
triadic
#BA3A8B #8BBA3A #3A8BBA
tetradic
#BA3A8B #BAA93A #3ABA69 #3A4BBA
square
#BA3A8B #BAA93A #3ABA69 #3A4BBA
split-complementary
#BA3A8B #4BBA3A #3ABAA9
monochromatic
#5D1D45 #8B2B68 #BA3A8B #CE63A7 #DD92C1

Accessibility & contrast

On white

5.17
#BA3A8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#BA3A8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3A8B
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3A8B#FFFFFF#000000##FFFFFF
##BA3A8B1.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#495F8D
Deuteranopia (green-blind)
#6F7588
Tritanopia (blue-blind)
#C6385D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba3a8b;
/* rgb */ color: rgb(186, 58, 139);
/* oklch */ color: oklch(55.9% 0.183 345.7);
Tailwind
colors: {
  custom: {
    50: '#d37aad',
    500: '#ba3a8b',
    950: '#000000',
  },
}
SCSS
$custom: #ba3a8b;
$custom-light: #d37aad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3a8b",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 139
  },
  "hsl": {
    "h": 322.031,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5594,
    "c": 0.18323,
    "h": 345.7
  },
  "luminance": 0.15329
}

Semantic roles & 50–950 ramp

primary
#BA3A8B
secondary
#88C89F
accent
#DC814C
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA3A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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