#BA4FA8#BA4FA8

#BA4FA8 is a mid, vivid pink. Relative luminance 0.189; OKLCH L 59.6% C 0.174 H 334.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BA4FA8
RGBrgb(186, 79, 168)
HSLhsl(310, 44%, 52%)
HSVhsv(310, 58%, 73%)
CMYKcmyk(0%, 57.5%, 9.7%, 27.1%)
CIE-LABlab(50.52, 54.12, -27.45)
CIE-LCHlch(50.52, 60.69, 333.10°)
OKLaboklab(59.59% 0.1567 -0.0746)
OKLCHoklch(59.59% 0.174 334.5)
XYZxyz(30.1137, 18.8604, 39.0926)
Luminance0.1886 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FA8 #4FBA61
analogous
#964FBA #BA4FA8 #BA4F73
triadic
#BA4FA8 #A8BA4F #4FA8BA
tetradic
#BA4FA8 #BA964F #4FBA61 #4F73BA
square
#BA4FA8 #BA964F #4FBA61 #4F73BA
split-complementary
#BA4FA8 #73BA4F #4FBA96
monochromatic
#66285C #923983 #BA4FA8 #CB7BBE #DCA7D3

Accessibility & contrast

On white

4.40
#BA4FA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#BA4FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FA8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FA8#FFFFFF#000000##000000
##BA4FA81.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6EAB
Deuteranopia (green-blind)
#6F7EA5
Tritanopia (blue-blind)
#C25674
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4fa8;
/* rgb */ color: rgb(186, 79, 168);
/* oklch */ color: oklch(59.6% 0.174 334.5);
Tailwind
colors: {
  custom: {
    50: '#d186c2',
    500: '#ba4fa8',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fa8;
$custom-light: #d186c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fa8",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 310.093,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59592,
    "c": 0.17354,
    "h": 334.5
  },
  "luminance": 0.18858
}

Semantic roles & 50–950 ramp

primary
#BA4FA8
secondary
#9BCAA3
accent
#D36A54
background
#FDF8FB
surface
#FAF0F7
border
#D3CBD0
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA4FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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