#BA33B3#BA33B3

#BA33B3 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.2% C 0.219 H 330.3°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BA33B3
RGBrgb(186, 51, 179)
HSLhsl(303, 57%, 46%)
HSVhsv(303, 73%, 73%)
CMYKcmyk(0%, 72.6%, 3.8%, 27.1%)
CIE-LABlab(47.06, 67.00, -39.35)
CIE-LCHlch(47.06, 77.70, 329.57°)
OKLaboklab(57.25% 0.19 -0.1086)
OKLCHoklch(57.25% 0.219 330.3)
XYZxyz(29.5701, 16.0637, 44.1823)
Luminance0.1606 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33B3 #33BA3A
analogous
#7E33BA #BA33B3 #BA3370
triadic
#BA33B3 #B3BA33 #33B3BA
tetradic
#BA33B3 #BA7E33 #33BA3A #3370BA
square
#BA33B3 #BA7E33 #33BA3A #3370BA
split-complementary
#BA33B3 #70BA33 #33BA7E
monochromatic
#5A1957 #8A2685 #BA33B3 #D159CB #DF89DA

Accessibility & contrast

On white

4.99
#BA33B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#BA33B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33B3
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33B3#FFFFFF#000000##FFFFFF
##BA33B31.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2464B7
Deuteranopia (green-blind)
#5C76B0
Tritanopia (blue-blind)
#C14570
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba33b3;
/* rgb */ color: rgb(186, 51, 179);
/* oklch */ color: oklch(57.2% 0.219 330.3);
Tailwind
colors: {
  custom: {
    50: '#d378ca',
    500: '#ba33b3',
    950: '#000000',
  },
}
SCSS
$custom: #ba33b3;
$custom-light: #d378ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33b3",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 179
  },
  "hsl": {
    "h": 303.111,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57246,
    "c": 0.21881,
    "h": 330.3
  },
  "luminance": 0.16061
}

Semantic roles & 50–950 ramp

primary
#BA33B3
secondary
#80C984
accent
#E04F48
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA33B3

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

Preview Lab → · Contrast checker → · Palette generator →

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