#BA4781#BA4781

#BA4781 is a mid, vivid pink. Relative luminance 0.165; OKLCH L 57.0% C 0.160 H 352.1°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA4781
RGBrgb(186, 71, 129)
HSLhsl(330, 45%, 50%)
HSVhsv(330, 62%, 73%)
CMYKcmyk(0%, 61.8%, 30.6%, 27.1%)
CIE-LABlab(47.67, 52.08, -8.58)
CIE-LCHlch(47.67, 52.78, 350.64°)
OKLaboklab(56.98% 0.1584 -0.0221)
OKLCHoklch(56.98% 0.16 352.1)
XYZxyz(26.4666, 16.5333, 22.5620)
Luminance0.1653 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4781 #47BA80
analogous
#BA47BA #BA4781 #BA4747
triadic
#BA4781 #81BA47 #4781BA
tetradic
#BA4781 #BABA47 #47BA80 #4747BA
square
#BA4781 #BABA47 #47BA80 #4747BA
split-complementary
#BA4781 #47BA47 #47BABA
monochromatic
#622544 #8E3562 #BA4781 #CB749F #DBA0BE

Accessibility & contrast

On white

4.88
#BA4781 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#BA4781 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4781
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4781#FFFFFF#000000##FFFFFF
##BA47811.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#576483
Deuteranopia (green-blind)
#77797E
Tritanopia (blue-blind)
#C7415E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba4781;
/* rgb */ color: rgb(186, 71, 129);
/* oklch */ color: oklch(57.0% 0.160 352.1);
Tailwind
colors: {
  custom: {
    50: '#d280a5',
    500: '#ba4781',
    950: '#000000',
  },
}
SCSS
$custom: #ba4781;
$custom-light: #d280a5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4781",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 129
  },
  "hsl": {
    "h": 329.739,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.56984,
    "c": 0.15996,
    "h": 352.1
  },
  "luminance": 0.16531
}

Semantic roles & 50–950 ramp

primary
#BA4781
secondary
#95C8AE
accent
#D59353
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#150B0F
muted
#837C7F

Preview Lab

Preview with #BA4781

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

Preview Lab → · Contrast checker → · Palette generator →

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