#BA3E8B#BA3E8B

#BA3E8B is a mid, vivid pink. Relative luminance 0.157; OKLCH L 56.4% C 0.178 H 346.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA3E8B
RGBrgb(186, 62, 139)
HSLhsl(323, 50%, 49%)
HSVhsv(323, 67%, 73%)
CMYKcmyk(0%, 66.7%, 25.3%, 27.1%)
CIE-LABlab(46.65, 57.16, -16.16)
CIE-LCHlch(46.65, 59.40, 344.21°)
OKLaboklab(56.35% 0.1728 -0.0428)
OKLCHoklch(56.35% 0.178 346.1)
XYZxyz(26.6336, 15.7511, 26.0587)
Luminance0.1575 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3E8B #3EBA6D
analogous
#AB3EBA #BA3E8B #BA3E4D
triadic
#BA3E8B #8BBA3E #3E8BBA
tetradic
#BA3E8B #BAAB3E #3EBA6D #3E4DBA
square
#BA3E8B #BAAB3E #3EBA6D #3E4DBA
split-complementary
#BA3E8B #4DBA3E #3EBAAB
monochromatic
#5E1F46 #8C2F69 #BA3E8B #CD68A7 #DC96C2

Accessibility & contrast

On white

5.06
#BA3E8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#BA3E8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3E8B
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3E8B#FFFFFF#000000##FFFFFF
##BA3E8B1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C618D
Deuteranopia (green-blind)
#707688
Tritanopia (blue-blind)
#C63B5F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba3e8b;
/* rgb */ color: rgb(186, 62, 139);
/* oklch */ color: oklch(56.4% 0.178 346.1);
Tailwind
colors: {
  custom: {
    50: '#d27cad',
    500: '#ba3e8b',
    950: '#000000',
  },
}
SCSS
$custom: #ba3e8b;
$custom-light: #d27cad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3e8b",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 139
  },
  "hsl": {
    "h": 322.742,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.56351,
    "c": 0.17801,
    "h": 346.1
  },
  "luminance": 0.15748
}

Semantic roles & 50–950 ramp

primary
#BA3E8B
secondary
#8CC8A3
accent
#DA834E
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA3E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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