#BA399E#BA399E

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

Color values

HEX#BA399E
RGBrgb(186, 57, 158)
HSLhsl(313, 53%, 48%)
HSVhsv(313, 69%, 73%)
CMYKcmyk(0%, 69.4%, 15.1%, 27.1%)
CIE-LABlab(46.76, 61.72, -27.39)
CIE-LCHlch(46.76, 67.53, 336.07°)
OKLaboklab(56.69% 0.1822 -0.0743)
OKLCHoklch(56.69% 0.197 337.8)
XYZxyz(27.8849, 15.8365, 33.9293)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA399E #39BA55
analogous
#9539BA #BA399E #BA395E
triadic
#BA399E #9EBA39 #399EBA
tetradic
#BA399E #BA9539 #39BA55 #395EBA
square
#BA399E #BA9539 #39BA55 #395EBA
split-complementary
#BA399E #5EBA39 #39BA95
monochromatic
#5C1C4E #8B2B76 #BA399E #CF61B7 #DD90CC

Accessibility & contrast

On white

5.04
#BA399E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA399E
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA399E#FFFFFF#000000##FFFFFF
##BA399E1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E62A1
Deuteranopia (green-blind)
#68769B
Tritanopia (blue-blind)
#C43F67
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba399e;
/* rgb */ color: rgb(186, 57, 158);
/* oklch */ color: oklch(56.7% 0.197 337.8);
Tailwind
colors: {
  custom: {
    50: '#d27abb',
    500: '#ba399e',
    950: '#000000',
  },
}
SCSS
$custom: #ba399e;
$custom-light: #d27abb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba399e",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 158
  },
  "hsl": {
    "h": 313.023,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56695,
    "c": 0.19672,
    "h": 337.8
  },
  "luminance": 0.15834
}

Semantic roles & 50–950 ramp

primary
#BA399E
secondary
#87C895
accent
#DC6B4B
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA399E

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

Preview Lab → · Contrast checker → · Palette generator →

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