#BA33BA#BA33BA

#BA33BA is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.6% C 0.224 H 328.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#BA33BA
RGBrgb(186, 51, 186)
HSLhsl(300, 57%, 46%)
HSVhsv(300, 73%, 73%)
CMYKcmyk(0%, 72.6%, 0%, 27.1%)
CIE-LABlab(47.44, 68.12, -42.85)
CIE-LCHlch(47.44, 80.48, 327.83°)
OKLaboklab(57.64% 0.1901 -0.1187)
OKLCHoklch(57.64% 0.224 328)
XYZxyz(30.2961, 16.3541, 48.0058)
Luminance0.1635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33BA #33BA33
analogous
#7733BA #BA33BA #BA3377
triadic
#BA33BA #BABA33 #33BABA
tetradic
#BA33BA #BA7733 #33BA33 #3377BA
square
#BA33BA #BA7733 #33BA33 #3377BA
split-complementary
#BA33BA #77BA33 #33BA77
monochromatic
#5A195A #8A268A #BA33BA #D159D1 #DF89DF

Accessibility & contrast

On white

4.92
#BA33BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#BA33BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33BA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33BA#FFFFFF#000000##FFFFFF
##BA33BA1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1865BE
Deuteranopia (green-blind)
#5877B7
Tritanopia (blue-blind)
#C04874
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba33ba;
/* rgb */ color: rgb(186, 51, 186);
/* oklch */ color: oklch(57.6% 0.224 328.0);
Tailwind
colors: {
  custom: {
    50: '#d378cf',
    500: '#ba33ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba33ba;
$custom-light: #d378cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33ba",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57639,
    "c": 0.22408,
    "h": 328
  },
  "luminance": 0.16352
}

Semantic roles & 50–950 ramp

primary
#BA33BA
secondary
#80C980
accent
#E04848
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA33BA

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

Preview Lab → · Contrast checker → · Palette generator →

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