#BA4BB4#BA4BB4

#BA4BB4 is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.7% C 0.189 H 329.8°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA4BB4
RGBrgb(186, 75, 180)
HSLhsl(303, 45%, 51%)
HSVhsv(303, 60%, 73%)
CMYKcmyk(0%, 59.7%, 3.2%, 27.1%)
CIE-LABlab(50.42, 57.91, -34.64)
CIE-LCHlch(50.42, 67.48, 329.11°)
OKLaboklab(59.69% 0.1635 -0.0952)
OKLCHoklch(59.69% 0.189 329.8)
XYZxyz(31.0037, 18.7686, 45.1609)
Luminance0.1877 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BB4 #4BBA51
analogous
#884BBA #BA4BB4 #BA4B7C
triadic
#BA4BB4 #B4BA4B #4BB4BA
tetradic
#BA4BB4 #BA884B #4BBA51 #4B7CBA
square
#BA4BB4 #BA884B #4BBA51 #4B7CBA
split-complementary
#BA4BB4 #7CBA4B #4BBA88
monochromatic
#642661 #90378C #BA4BB4 #CB77C6 #DCA3D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA4BB4#FFFFFF#000000##000000
##BA4BB41.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)
#436EB7
Deuteranopia (green-blind)
#677DB1
Tritanopia (blue-blind)
#C05779
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4bb4;
/* rgb */ color: rgb(186, 75, 180);
/* oklch */ color: oklch(59.7% 0.189 329.8);
Tailwind
colors: {
  custom: {
    50: '#d284cb',
    500: '#ba4bb4',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bb4;
$custom-light: #d284cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bb4",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 180
  },
  "hsl": {
    "h": 303.243,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59692,
    "c": 0.18922,
    "h": 329.8
  },
  "luminance": 0.18767
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA4BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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