#BA30A1#BA30A1

#BA30A1 is a mid, highly saturated pink. Relative luminance 0.151; OKLCH L 56.1% C 0.209 H 336.5°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA30A1
RGBrgb(186, 48, 161)
HSLhsl(311, 59%, 46%)
HSVhsv(311, 74%, 73%)
CMYKcmyk(0%, 74.2%, 13.4%, 27.1%)
CIE-LABlab(45.81, 65.24, -30.66)
CIE-LCHlch(45.81, 72.08, 334.83°)
OKLaboklab(56.05% 0.1917 -0.0835)
OKLCHoklch(56.05% 0.209 336.5)
XYZxyz(27.7401, 15.1288, 35.1705)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30A1 #30BA49
analogous
#8E30BA #BA30A1 #BA305C
triadic
#BA30A1 #A1BA30 #30A1BA
tetradic
#BA30A1 #BA8E30 #30BA49 #305CBA
square
#BA30A1 #BA8E30 #30BA49 #305CBA
split-complementary
#BA30A1 #5CBA30 #30BA8E
monochromatic
#59174D #892377 #BA30A1 #D354BC #DF85CF

Accessibility & contrast

On white

5.22
#BA30A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA30A1
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30A1#FFFFFF#000000##FFFFFF
##BA30A11.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335FA4
Deuteranopia (green-blind)
#63749E
Tritanopia (blue-blind)
#C43A65
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba30a1;
/* rgb */ color: rgb(186, 48, 161);
/* oklch */ color: oklch(56.1% 0.209 336.5);
Tailwind
colors: {
  custom: {
    50: '#d376bd',
    500: '#ba30a1',
    950: '#000000',
  },
}
SCSS
$custom: #ba30a1;
$custom-light: #d376bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30a1",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 161
  },
  "hsl": {
    "h": 310.87,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56054,
    "c": 0.20911,
    "h": 336.5
  },
  "luminance": 0.15126
}

Semantic roles & 50–950 ramp

primary
#BA30A1
secondary
#7DC98B
accent
#E26246
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA30A1

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

Preview Lab → · Contrast checker → · Palette generator →

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