#BA31A0#BA31A0

#BA31A0 is a mid, highly saturated pink. Relative luminance 0.152; OKLCH L 56.1% C 0.207 H 336.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#BA31A0
RGBrgb(186, 49, 160)
HSLhsl(311, 58%, 46%)
HSVhsv(311, 74%, 73%)
CMYKcmyk(0%, 73.7%, 14%, 27.1%)
CIE-LABlab(45.87, 64.77, -29.96)
CIE-LCHlch(45.87, 71.37, 335.18°)
OKLaboklab(56.08% 0.1906 -0.0815)
OKLCHoklch(56.08% 0.207 336.8)
XYZxyz(27.6937, 15.1763, 34.7217)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA31A0 #31BA4B
analogous
#8F31BA #BA31A0 #BA315B
triadic
#BA31A0 #A0BA31 #31A0BA
tetradic
#BA31A0 #BA8F31 #31BA4B #315BBA
square
#BA31A0 #BA8F31 #31BA4B #315BBA
split-complementary
#BA31A0 #5BBA31 #31BA8F
monochromatic
#59174D #8A2476 #BA31A0 #D256BB #DF86CE

Accessibility & contrast

On white

5.20
#BA31A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#BA31A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA31A0
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA31A0#FFFFFF#000000##FFFFFF
##BA31A01.005.204.035.20
#FFFFFF5.201.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355FA3
Deuteranopia (green-blind)
#64749D
Tritanopia (blue-blind)
#C43A65
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba31a0;
/* rgb */ color: rgb(186, 49, 160);
/* oklch */ color: oklch(56.1% 0.207 336.8);
Tailwind
colors: {
  custom: {
    50: '#d377bc',
    500: '#ba31a0',
    950: '#000000',
  },
}
SCSS
$custom: #ba31a0;
$custom-light: #d377bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba31a0",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 160
  },
  "hsl": {
    "h": 311.387,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56085,
    "c": 0.20735,
    "h": 336.8
  },
  "luminance": 0.15174
}

Semantic roles & 50–950 ramp

primary
#BA31A0
secondary
#7EC98C
accent
#E26446
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA31A0

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

Preview Lab → · Contrast checker → · Palette generator →

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