#BA4FA5#BA4FA5

#BA4FA5 is a mid, vivid pink. Relative luminance 0.187; OKLCH L 59.5% C 0.171 H 335.8°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA4FA5
RGBrgb(186, 79, 165)
HSLhsl(312, 44%, 52%)
HSVhsv(312, 58%, 73%)
CMYKcmyk(0%, 57.5%, 11.3%, 27.1%)
CIE-LABlab(50.39, 53.64, -25.89)
CIE-LCHlch(50.39, 59.56, 334.23°)
OKLaboklab(59.45% 0.1561 -0.0702)
OKLCHoklch(59.45% 0.171 335.8)
XYZxyz(29.8374, 18.7499, 37.6376)
Luminance0.1875 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FA5 #4FBA64
analogous
#9A4FBA #BA4FA5 #BA4F70
triadic
#BA4FA5 #A5BA4F #4FA5BA
tetradic
#BA4FA5 #BA9A4F #4FBA64 #4F70BA
square
#BA4FA5 #BA9A4F #4FBA64 #4F70BA
split-complementary
#BA4FA5 #70BA4F #4FBA9A
monochromatic
#66285A #923981 #BA4FA5 #CB7BBB #DCA7D2

Accessibility & contrast

On white

4.42
#BA4FA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#BA4FA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FA5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FA5#FFFFFF#000000##000000
##BA4FA51.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#506EA8
Deuteranopia (green-blind)
#707EA2
Tritanopia (blue-blind)
#C35573
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4fa5;
/* rgb */ color: rgb(186, 79, 165);
/* oklch */ color: oklch(59.5% 0.171 335.8);
Tailwind
colors: {
  custom: {
    50: '#d186c0',
    500: '#ba4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fa5;
$custom-light: #d186c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fa5",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 311.776,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59453,
    "c": 0.17119,
    "h": 335.8
  },
  "luminance": 0.18748
}

Semantic roles & 50–950 ramp

primary
#BA4FA5
secondary
#9BCAA4
accent
#D36D54
background
#FDF8FB
surface
#FAF0F7
border
#D3CBD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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