#BA3B8E#BA3B8E

#BA3B8E is a mid, vivid pink. Relative luminance 0.155; OKLCH L 56.2% C 0.184 H 344.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA3B8E
RGBrgb(186, 59, 142)
HSLhsl(321, 52%, 48%)
HSVhsv(321, 68%, 73%)
CMYKcmyk(0%, 68.3%, 23.7%, 27.1%)
CIE-LABlab(46.34, 58.73, -18.44)
CIE-LCHlch(46.34, 61.56, 342.57°)
OKLaboklab(56.17% 0.1771 -0.0491)
OKLCHoklch(56.17% 0.184 344.5)
XYZxyz(26.6971, 15.5227, 27.1761)
Luminance0.1552 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3B8E #3BBA67
analogous
#A63BBA #BA3B8E #BA3B4F
triadic
#BA3B8E #8EBA3B #3B8EBA
tetradic
#BA3B8E #BAA63B #3BBA67 #3B4FBA
square
#BA3B8E #BAA63B #3BBA67 #3B4FBA
split-complementary
#BA3B8E #4FBA3B #3BBAA6
monochromatic
#5D1E47 #8C2C6B #BA3B8E #CE64A9 #DD93C3

Accessibility & contrast

On white

5.12
#BA3B8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA3B8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3B8E
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3B8E#FFFFFF#000000##FFFFFF
##BA3B8E1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486090
Deuteranopia (green-blind)
#6E768B
Tritanopia (blue-blind)
#C63A5F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba3b8e;
/* rgb */ color: rgb(186, 59, 142);
/* oklch */ color: oklch(56.2% 0.184 344.5);
Tailwind
colors: {
  custom: {
    50: '#d27baf',
    500: '#ba3b8e',
    950: '#000000',
  },
}
SCSS
$custom: #ba3b8e;
$custom-light: #d27baf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3b8e",
  "rgb": {
    "r": 186,
    "g": 59,
    "b": 142
  },
  "hsl": {
    "h": 320.787,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56167,
    "c": 0.18374,
    "h": 344.5
  },
  "luminance": 0.1552
}

Semantic roles & 50–950 ramp

primary
#BA3B8E
secondary
#89C89F
accent
#DB7E4D
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA3B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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