#BA399B#BA399B

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

Color values

HEX#BA399B
RGBrgb(186, 57, 155)
HSLhsl(314, 53%, 48%)
HSVhsv(314, 69%, 73%)
CMYKcmyk(0%, 69.4%, 16.7%, 27.1%)
CIE-LABlab(46.62, 61.29, -25.81)
CIE-LCHlch(46.62, 66.50, 337.17°)
OKLaboklab(56.55% 0.1817 -0.0698)
OKLCHoklch(56.55% 0.195 339)
XYZxyz(27.6298, 15.7345, 32.5859)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA399B #39BA58
analogous
#9939BA #BA399B #BA395A
triadic
#BA399B #9BBA39 #399BBA
tetradic
#BA399B #BA9939 #39BA58 #395ABA
square
#BA399B #BA9939 #39BA58 #395ABA
split-complementary
#BA399B #5ABA39 #39BA99
monochromatic
#5C1C4D #8B2B74 #BA399B #CF61B4 #DD90CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA399B#FFFFFF#000000##FFFFFF
##BA399B1.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)
#40629E
Deuteranopia (green-blind)
#697698
Tritanopia (blue-blind)
#C43E65
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba399b;
/* rgb */ color: rgb(186, 57, 155);
/* oklch */ color: oklch(56.6% 0.195 339.0);
Tailwind
colors: {
  custom: {
    50: '#d27ab8',
    500: '#ba399b',
    950: '#000000',
  },
}
SCSS
$custom: #ba399b;
$custom-light: #d27ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba399b",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 314.419,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56553,
    "c": 0.19465,
    "h": 339
  },
  "luminance": 0.15732
}

Semantic roles & 50–950 ramp

primary
#BA399B
secondary
#87C896
accent
#DC6E4B
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA399B

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

Preview Lab → · Contrast checker → · Palette generator →

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