#BA399D#BA399D

#BA399D is a mid, vivid pink. Relative luminance 0.158; OKLCH L 56.6% C 0.196 H 338.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA399D
RGBrgb(186, 57, 157)
HSLhsl(313, 53%, 48%)
HSVhsv(313, 69%, 73%)
CMYKcmyk(0%, 69.4%, 15.6%, 27.1%)
CIE-LABlab(46.71, 61.58, -26.86)
CIE-LCHlch(46.71, 67.18, 336.43°)
OKLaboklab(56.65% 0.182 -0.0728)
OKLCHoklch(56.65% 0.196 338.2)
XYZxyz(27.7992, 15.8022, 33.4778)
Luminance0.1580 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA399D #39BA56
analogous
#9639BA #BA399D #BA395D
triadic
#BA399D #9DBA39 #399DBA
tetradic
#BA399D #BA9639 #39BA56 #395DBA
square
#BA399D #BA9639 #39BA56 #395DBA
split-complementary
#BA399D #5DBA39 #39BA96
monochromatic
#5C1C4E #8B2B75 #BA399D #CF61B6 #DD90CC

Accessibility & contrast

On white

5.05
#BA399D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#BA399D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA399D
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA399D#FFFFFF#000000##FFFFFF
##BA399D1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E62A0
Deuteranopia (green-blind)
#68769A
Tritanopia (blue-blind)
#C43F66
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba399d;
/* rgb */ color: rgb(186, 57, 157);
/* oklch */ color: oklch(56.6% 0.196 338.2);
Tailwind
colors: {
  custom: {
    50: '#d27aba',
    500: '#ba399d',
    950: '#000000',
  },
}
SCSS
$custom: #ba399d;
$custom-light: #d27aba;
$custom-dark: #000000;
JSON
{
  "hex": "#ba399d",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 157
  },
  "hsl": {
    "h": 313.488,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56647,
    "c": 0.19603,
    "h": 338.2
  },
  "luminance": 0.158
}

Semantic roles & 50–950 ramp

primary
#BA399D
secondary
#87C895
accent
#DC6C4B
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA399D

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

Preview Lab → · Contrast checker → · Palette generator →

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