#BA4FA6#BA4FA6

#BA4FA6 is a mid, vivid pink. Relative luminance 0.188; OKLCH L 59.5% C 0.172 H 335.4°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#BA4FA6
RGBrgb(186, 79, 166)
HSLhsl(311, 44%, 52%)
HSVhsv(311, 58%, 73%)
CMYKcmyk(0%, 57.5%, 10.8%, 27.1%)
CIE-LABlab(50.44, 53.80, -26.41)
CIE-LCHlch(50.44, 59.93, 333.85°)
OKLaboklab(59.5% 0.1563 -0.0717)
OKLCHoklch(59.5% 0.172 335.4)
XYZxyz(29.9288, 18.7865, 38.1188)
Luminance0.1878 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FA6 #4FBA63
analogous
#994FBA #BA4FA6 #BA4F71
triadic
#BA4FA6 #A6BA4F #4FA6BA
tetradic
#BA4FA6 #BA994F #4FBA63 #4F71BA
square
#BA4FA6 #BA994F #4FBA63 #4F71BA
split-complementary
#BA4FA6 #71BA4F #4FBA99
monochromatic
#66285B #923982 #BA4FA6 #CB7BBC #DCA7D2

Accessibility & contrast

On white

4.41
#BA4FA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#BA4FA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FA6
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FA6#FFFFFF#000000##000000
##BA4FA61.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F6EA9
Deuteranopia (green-blind)
#707EA3
Tritanopia (blue-blind)
#C25573
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4fa6;
/* rgb */ color: rgb(186, 79, 166);
/* oklch */ color: oklch(59.5% 0.172 335.4);
Tailwind
colors: {
  custom: {
    50: '#d186c0',
    500: '#ba4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fa6;
$custom-light: #d186c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fa6",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 311.215,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59499,
    "c": 0.17197,
    "h": 335.4
  },
  "luminance": 0.18784
}

Semantic roles & 50–950 ramp

primary
#BA4FA6
secondary
#9BCAA4
accent
#D36C54
background
#FDF8FB
surface
#FAF0F7
border
#D3CBD0
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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