#BA4CB5#BA4CB5

#BA4CB5 is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.9% C 0.189 H 329.4°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA4CB5
RGBrgb(186, 76, 181)
HSLhsl(303, 44%, 51%)
HSVhsv(303, 59%, 73%)
CMYKcmyk(0%, 59.1%, 2.7%, 27.1%)
CIE-LABlab(50.62, 57.64, -34.90)
CIE-LCHlch(50.62, 67.38, 328.81°)
OKLaboklab(59.86% 0.1624 -0.0959)
OKLCHoklch(59.86% 0.189 329.4)
XYZxyz(31.1743, 18.9463, 45.7221)
Luminance0.1894 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4CB5 #4CBA51
analogous
#884CBA #BA4CB5 #BA4C7E
triadic
#BA4CB5 #B5BA4C #4CB5BA
tetradic
#BA4CB5 #BA884C #4CBA51 #4C7EBA
square
#BA4CB5 #BA884C #4CBA51 #4C7EBA
split-complementary
#BA4CB5 #7EBA4C #4CBA88
monochromatic
#652762 #91388D #BA4CB5 #CB78C7 #DCA4DA

Accessibility & contrast

On white

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

On black

4.79
#BA4CB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4CB5
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4CB5#FFFFFF#000000##000000
##BA4CB51.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#436FB8
Deuteranopia (green-blind)
#687EB2
Tritanopia (blue-blind)
#C05879
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4cb5;
/* rgb */ color: rgb(186, 76, 181);
/* oklch */ color: oklch(59.9% 0.189 329.4);
Tailwind
colors: {
  custom: {
    50: '#d284cb',
    500: '#ba4cb5',
    950: '#000000',
  },
}
SCSS
$custom: #ba4cb5;
$custom-light: #d284cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4cb5",
  "rgb": {
    "r": 186,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 302.727,
    "s": 44.355,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59861,
    "c": 0.18861,
    "h": 329.4
  },
  "luminance": 0.18944
}

Semantic roles & 50–950 ramp

primary
#BA4CB5
secondary
#99C99B
accent
#D45A54
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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