#BA4FA7#BA4FA7

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

Color values

HEX#BA4FA7
RGBrgb(186, 79, 167)
HSLhsl(311, 44%, 52%)
HSVhsv(311, 58%, 73%)
CMYKcmyk(0%, 57.5%, 10.2%, 27.1%)
CIE-LABlab(50.48, 53.96, -26.93)
CIE-LCHlch(50.48, 60.31, 333.48°)
OKLaboklab(59.55% 0.1565 -0.0732)
OKLCHoklch(59.55% 0.173 334.9)
XYZxyz(30.0209, 18.8233, 38.6038)
Luminance0.1882 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FA7 #4FBA62
analogous
#974FBA #BA4FA7 #BA4F72
triadic
#BA4FA7 #A7BA4F #4FA7BA
tetradic
#BA4FA7 #BA974F #4FBA62 #4F72BA
square
#BA4FA7 #BA974F #4FBA62 #4F72BA
split-complementary
#BA4FA7 #72BA4F #4FBA97
monochromatic
#66285B #923983 #BA4FA7 #CB7BBD #DCA7D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA4FA7#FFFFFF#000000##000000
##BA4FA71.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)
#4F6EAA
Deuteranopia (green-blind)
#6F7EA4
Tritanopia (blue-blind)
#C25574
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4fa7;
/* rgb */ color: rgb(186, 79, 167);
/* oklch */ color: oklch(59.5% 0.173 334.9);
Tailwind
colors: {
  custom: {
    50: '#d186c1',
    500: '#ba4fa7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fa7;
$custom-light: #d186c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fa7",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 310.654,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59545,
    "c": 0.17275,
    "h": 334.9
  },
  "luminance": 0.18821
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA4FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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