#BA3A8E#BA3A8E

#BA3A8E is a mid, vivid pink. Relative luminance 0.154; OKLCH L 56.1% C 0.185 H 344.4°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA3A8E
RGBrgb(186, 58, 142)
HSLhsl(321, 52%, 48%)
HSVhsv(321, 69%, 73%)
CMYKcmyk(0%, 68.8%, 23.7%, 27.1%)
CIE-LABlab(46.21, 59.12, -18.65)
CIE-LCHlch(46.21, 61.99, 342.49°)
OKLaboklab(56.07% 0.1782 -0.0496)
OKLCHoklch(56.07% 0.185 344.4)
XYZxyz(26.6462, 15.4209, 27.1592)
Luminance0.1542 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3A8E #3ABA66
analogous
#A63ABA #BA3A8E #BA3A4E
triadic
#BA3A8E #8EBA3A #3A8EBA
tetradic
#BA3A8E #BAA63A #3ABA66 #3A4EBA
square
#BA3A8E #BAA63A #3ABA66 #3A4EBA
split-complementary
#BA3A8E #4EBA3A #3ABAA6
monochromatic
#5D1D47 #8B2B6A #BA3A8E #CE63A9 #DD92C3

Accessibility & contrast

On white

5.14
#BA3A8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#BA3A8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3A8E
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3A8E#FFFFFF#000000##FFFFFF
##BA3A8E1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476090
Deuteranopia (green-blind)
#6E758B
Tritanopia (blue-blind)
#C6395F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba3a8e;
/* rgb */ color: rgb(186, 58, 142);
/* oklch */ color: oklch(56.1% 0.185 344.4);
Tailwind
colors: {
  custom: {
    50: '#d37aaf',
    500: '#ba3a8e',
    950: '#000000',
  },
}
SCSS
$custom: #ba3a8e;
$custom-light: #d37aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3a8e",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 142
  },
  "hsl": {
    "h": 320.625,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56067,
    "c": 0.18503,
    "h": 344.4
  },
  "luminance": 0.15418
}

Semantic roles & 50–950 ramp

primary
#BA3A8E
secondary
#88C89E
accent
#DC7D4C
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA3A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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