#BA31A3#BA31A3

#BA31A3 is a mid, highly saturated pink. Relative luminance 0.153; OKLCH L 56.2% C 0.209 H 335.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#BA31A3
RGBrgb(186, 49, 163)
HSLhsl(310, 58%, 46%)
HSVhsv(310, 74%, 73%)
CMYKcmyk(0%, 73.7%, 12.4%, 27.1%)
CIE-LABlab(46.02, 65.21, -31.52)
CIE-LCHlch(46.02, 72.43, 334.20°)
OKLaboklab(56.24% 0.1909 -0.086)
OKLCHoklch(56.24% 0.209 335.8)
XYZxyz(27.9593, 15.2826, 36.1205)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA31A3 #31BA48
analogous
#8C31BA #BA31A3 #BA315E
triadic
#BA31A3 #A3BA31 #31A3BA
tetradic
#BA31A3 #BA8C31 #31BA48 #315EBA
square
#BA31A3 #BA8C31 #31BA48 #315EBA
split-complementary
#BA31A3 #5EBA31 #31BA8C
monochromatic
#59174E #8A2479 #BA31A3 #D256BD #DF86D0

Accessibility & contrast

On white

5.18
#BA31A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#BA31A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA31A3
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA31A3#FFFFFF#000000##FFFFFF
##BA31A31.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3260A6
Deuteranopia (green-blind)
#6274A0
Tritanopia (blue-blind)
#C33B67
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba31a3;
/* rgb */ color: rgb(186, 49, 163);
/* oklch */ color: oklch(56.2% 0.209 335.8);
Tailwind
colors: {
  custom: {
    50: '#d377be',
    500: '#ba31a3',
    950: '#000000',
  },
}
SCSS
$custom: #ba31a3;
$custom-light: #d377be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba31a3",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 310.073,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56236,
    "c": 0.20941,
    "h": 335.8
  },
  "luminance": 0.1528
}

Semantic roles & 50–950 ramp

primary
#BA31A3
secondary
#7EC98B
accent
#E26046
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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