#BA4FA4#BA4FA4

#BA4FA4 is a mid, vivid pink. Relative luminance 0.187; OKLCH L 59.4% C 0.170 H 336.2°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BA4FA4
RGBrgb(186, 79, 164)
HSLhsl(312, 44%, 52%)
HSVhsv(312, 58%, 73%)
CMYKcmyk(0%, 57.5%, 11.8%, 27.1%)
CIE-LABlab(50.35, 53.48, -25.37)
CIE-LCHlch(50.35, 59.19, 334.62°)
OKLaboklab(59.41% 0.156 -0.0687)
OKLCHoklch(59.41% 0.17 336.2)
XYZxyz(29.7468, 18.7137, 37.1601)
Luminance0.1871 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FA4 #4FBA65
analogous
#9A4FBA #BA4FA4 #BA4F6F
triadic
#BA4FA4 #A4BA4F #4FA4BA
tetradic
#BA4FA4 #BA9A4F #4FBA65 #4F6FBA
square
#BA4FA4 #BA9A4F #4FBA65 #4F6FBA
split-complementary
#BA4FA4 #6FBA4F #4FBA9A
monochromatic
#66285A #923980 #BA4FA4 #CB7BBB #DCA7D1

Accessibility & contrast

On white

4.43
#BA4FA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#BA4FA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FA4
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FA4#FFFFFF#000000##000000
##BA4FA41.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#506EA7
Deuteranopia (green-blind)
#707EA1
Tritanopia (blue-blind)
#C35472
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4fa4;
/* rgb */ color: rgb(186, 79, 164);
/* oklch */ color: oklch(59.4% 0.170 336.2);
Tailwind
colors: {
  custom: {
    50: '#d186bf',
    500: '#ba4fa4',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fa4;
$custom-light: #d186bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fa4",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 312.336,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59408,
    "c": 0.17042,
    "h": 336.2
  },
  "luminance": 0.18711
}

Semantic roles & 50–950 ramp

primary
#BA4FA4
secondary
#9BCAA5
accent
#D36F54
background
#FDF8FB
surface
#FAF0F7
border
#D3CBD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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