#BA33B9#BA33B9

#BA33B9 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.6% C 0.223 H 328.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BA33B9
RGBrgb(186, 51, 185)
HSLhsl(300, 57%, 46%)
HSVhsv(300, 73%, 73%)
CMYKcmyk(0%, 72.6%, 0.5%, 27.1%)
CIE-LABlab(47.38, 67.96, -42.35)
CIE-LCHlch(47.38, 80.07, 328.07°)
OKLaboklab(57.58% 0.1901 -0.1173)
OKLCHoklch(57.58% 0.223 328.3)
XYZxyz(30.1901, 16.3117, 47.4479)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33B9 #33BA34
analogous
#7833BA #BA33B9 #BA3376
triadic
#BA33B9 #B9BA33 #33B9BA
tetradic
#BA33B9 #BA7833 #33BA34 #3376BA
square
#BA33B9 #BA7833 #33BA34 #3376BA
split-complementary
#BA33B9 #76BA33 #33BA78
monochromatic
#5A1959 #8A2689 #BA33B9 #D159D1 #DF89DE

Accessibility & contrast

On white

4.93
#BA33B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#BA33B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33B9
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33B9#FFFFFF#000000##FFFFFF
##BA33B91.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A65BD
Deuteranopia (green-blind)
#5876B6
Tritanopia (blue-blind)
#C04873
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba33b9;
/* rgb */ color: rgb(186, 51, 185);
/* oklch */ color: oklch(57.6% 0.223 328.3);
Tailwind
colors: {
  custom: {
    50: '#d378ce',
    500: '#ba33b9',
    950: '#000000',
  },
}
SCSS
$custom: #ba33b9;
$custom-light: #d378ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33b9",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 185
  },
  "hsl": {
    "h": 300.444,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57582,
    "c": 0.22333,
    "h": 328.3
  },
  "luminance": 0.1631
}

Semantic roles & 50–950 ramp

primary
#BA33B9
secondary
#80C981
accent
#E04948
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA33B9

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

Preview Lab → · Contrast checker → · Palette generator →

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