#BA399F#BA399F

#BA399F is a mid, vivid pink. Relative luminance 0.159; OKLCH L 56.7% C 0.197 H 337.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA399F
RGBrgb(186, 57, 159)
HSLhsl(313, 53%, 48%)
HSVhsv(313, 69%, 73%)
CMYKcmyk(0%, 69.4%, 14.5%, 27.1%)
CIE-LABlab(46.80, 61.87, -27.91)
CIE-LCHlch(46.80, 67.87, 335.72°)
OKLaboklab(56.74% 0.1823 -0.0757)
OKLCHoklch(56.74% 0.197 337.4)
XYZxyz(27.9713, 15.8711, 34.3844)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA399F #39BA54
analogous
#9439BA #BA399F #BA395F
triadic
#BA399F #9FBA39 #399FBA
tetradic
#BA399F #BA9439 #39BA54 #395FBA
square
#BA399F #BA9439 #39BA54 #395FBA
split-complementary
#BA399F #5FBA39 #39BA94
monochromatic
#5C1C4F #8B2B77 #BA399F #CF61B8 #DD90CD

Accessibility & contrast

On white

5.03
#BA399F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#BA399F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA399F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA399F#FFFFFF#000000##FFFFFF
##BA399F1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D62A2
Deuteranopia (green-blind)
#67769C
Tritanopia (blue-blind)
#C44067
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba399f;
/* rgb */ color: rgb(186, 57, 159);
/* oklch */ color: oklch(56.7% 0.197 337.4);
Tailwind
colors: {
  custom: {
    50: '#d27abb',
    500: '#ba399f',
    950: '#000000',
  },
}
SCSS
$custom: #ba399f;
$custom-light: #d27abb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba399f",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 159
  },
  "hsl": {
    "h": 312.558,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56743,
    "c": 0.1974,
    "h": 337.4
  },
  "luminance": 0.15869
}

Semantic roles & 50–950 ramp

primary
#BA399F
secondary
#87C894
accent
#DC6A4B
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA399F

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

Preview Lab → · Contrast checker → · Palette generator →

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