#BA4FA9#BA4FA9

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

Color values

HEX#BA4FA9
RGBrgb(186, 79, 169)
HSLhsl(310, 44%, 52%)
HSVhsv(310, 58%, 73%)
CMYKcmyk(0%, 57.5%, 9.1%, 27.1%)
CIE-LABlab(50.57, 54.29, -27.97)
CIE-LCHlch(50.57, 61.07, 332.74°)
OKLaboklab(59.64% 0.1568 -0.0761)
OKLCHoklch(59.64% 0.174 334.1)
XYZxyz(30.2072, 18.8979, 39.5851)
Luminance0.1890 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FA9 #4FBA60
analogous
#964FBA #BA4FA9 #BA4F74
triadic
#BA4FA9 #A9BA4F #4FA9BA
tetradic
#BA4FA9 #BA964F #4FBA60 #4F74BA
square
#BA4FA9 #BA964F #4FBA60 #4F74BA
split-complementary
#BA4FA9 #74BA4F #4FBA96
monochromatic
#66285D #923984 #BA4FA9 #CB7BBE #DCA7D4

Accessibility & contrast

On white

4.39
#BA4FA9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#BA4FA9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FA9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FA9#FFFFFF#000000##000000
##BA4FA91.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6EAC
Deuteranopia (green-blind)
#6E7EA6
Tritanopia (blue-blind)
#C25675
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4fa9;
/* rgb */ color: rgb(186, 79, 169);
/* oklch */ color: oklch(59.6% 0.174 334.1);
Tailwind
colors: {
  custom: {
    50: '#d186c3',
    500: '#ba4fa9',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fa9;
$custom-light: #d186c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fa9",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 169
  },
  "hsl": {
    "h": 309.533,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59638,
    "c": 0.17433,
    "h": 334.1
  },
  "luminance": 0.18896
}

Semantic roles & 50–950 ramp

primary
#BA4FA9
secondary
#9BCAA2
accent
#D36954
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA4FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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