#BA4BBA#BA4BBA

#BA4BBA is a mid, vivid purple. Relative luminance 0.190; OKLCH L 60.0% C 0.194 H 327.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#BA4BBA
RGBrgb(186, 75, 186)
HSLhsl(300, 45%, 51%)
HSVhsv(300, 60%, 73%)
CMYKcmyk(0%, 59.7%, 0%, 27.1%)
CIE-LABlab(50.71, 58.95, -37.67)
CIE-LCHlch(50.71, 69.96, 327.42°)
OKLaboklab(60% 0.1641 -0.1039)
OKLCHoklch(60% 0.194 327.7)
XYZxyz(31.6282, 19.0184, 48.4499)
Luminance0.1902 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BBA #4BBA4B
analogous
#824BBA #BA4BBA #BA4B82
triadic
#BA4BBA #BABA4B #4BBABA
tetradic
#BA4BBA #BA824B #4BBA4B #4B82BA
square
#BA4BBA #BA824B #4BBA4B #4B82BA
split-complementary
#BA4BBA #82BA4B #4BBA82
monochromatic
#642664 #903790 #BA4BBA #CB77CB #DCA3DC

Accessibility & contrast

On white

4.37
#BA4BBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#BA4BBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BBA
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BBA#FFFFFF#000000##000000
##BA4BBA1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E6FBD
Deuteranopia (green-blind)
#657EB7
Tritanopia (blue-blind)
#BF597C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba4bba;
/* rgb */ color: rgb(186, 75, 186);
/* oklch */ color: oklch(60.0% 0.194 327.7);
Tailwind
colors: {
  custom: {
    50: '#d284cf',
    500: '#ba4bba',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bba;
$custom-light: #d284cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bba",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60002,
    "c": 0.19426,
    "h": 327.7
  },
  "luminance": 0.19016
}

Semantic roles & 50–950 ramp

primary
#BA4BBA
secondary
#98C998
accent
#D45454
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA4BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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