#BA4CAF#BA4CAF

#BA4CAF is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.6% C 0.184 H 331.7°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BA4CAF
RGBrgb(186, 76, 175)
HSLhsl(306, 44%, 51%)
HSVhsv(306, 59%, 73%)
CMYKcmyk(0%, 59.1%, 5.9%, 27.1%)
CIE-LABlab(50.34, 56.63, -31.84)
CIE-LCHlch(50.34, 64.97, 330.65°)
OKLaboklab(59.56% 0.1617 -0.0871)
OKLCHoklch(59.56% 0.184 331.7)
XYZxyz(30.5719, 18.7053, 42.5494)
Luminance0.1870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4CAF #4CBA57
analogous
#8E4CBA #BA4CAF #BA4C78
triadic
#BA4CAF #AFBA4C #4CAFBA
tetradic
#BA4CAF #BA8E4C #4CBA57 #4C78BA
square
#BA4CAF #BA8E4C #4CBA57 #4C78BA
split-complementary
#BA4CAF #78BA4C #4CBA8E
monochromatic
#65275F #913888 #BA4CAF #CB78C3 #DCA4D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA4CAF#FFFFFF#000000##000000
##BA4CAF1.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)
#476EB2
Deuteranopia (green-blind)
#6A7DAC
Tritanopia (blue-blind)
#C15676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4caf;
/* rgb */ color: rgb(186, 76, 175);
/* oklch */ color: oklch(59.6% 0.184 331.7);
Tailwind
colors: {
  custom: {
    50: '#d284c7',
    500: '#ba4caf',
    950: '#000000',
  },
}
SCSS
$custom: #ba4caf;
$custom-light: #d284c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4caf",
  "rgb": {
    "r": 186,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 306,
    "s": 44.355,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59561,
    "c": 0.18365,
    "h": 331.7
  },
  "luminance": 0.18703
}

Semantic roles & 50–950 ramp

primary
#BA4CAF
secondary
#99C99E
accent
#D46154
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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