#BA33B8#BA33B8

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

Color values

HEX#BA33B8
RGBrgb(186, 51, 184)
HSLhsl(301, 57%, 46%)
HSVhsv(301, 73%, 73%)
CMYKcmyk(0%, 72.6%, 1.1%, 27.1%)
CIE-LABlab(47.33, 67.80, -41.85)
CIE-LCHlch(47.33, 79.67, 328.31°)
OKLaboklab(57.53% 0.1901 -0.1158)
OKLCHoklch(57.53% 0.223 328.6)
XYZxyz(30.0850, 16.2697, 46.8939)
Luminance0.1627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33B8 #33BA35
analogous
#7933BA #BA33B8 #BA3375
triadic
#BA33B8 #B8BA33 #33B8BA
tetradic
#BA33B8 #BA7933 #33BA35 #3375BA
square
#BA33B8 #BA7933 #33BA35 #3375BA
split-complementary
#BA33B8 #75BA33 #33BA79
monochromatic
#5A1959 #8A2688 #BA33B8 #D159D0 #DF89DD

Accessibility & contrast

On white

4.94
#BA33B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#BA33B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33B8
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33B8#FFFFFF#000000##FFFFFF
##BA33B81.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C65BC
Deuteranopia (green-blind)
#5976B5
Tritanopia (blue-blind)
#C04773
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba33b8;
/* rgb */ color: rgb(186, 51, 184);
/* oklch */ color: oklch(57.5% 0.223 328.6);
Tailwind
colors: {
  custom: {
    50: '#d378ce',
    500: '#ba33b8',
    950: '#000000',
  },
}
SCSS
$custom: #ba33b8;
$custom-light: #d378ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33b8",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 184
  },
  "hsl": {
    "h": 300.889,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57525,
    "c": 0.22257,
    "h": 328.6
  },
  "luminance": 0.16267
}

Semantic roles & 50–950 ramp

primary
#BA33B8
secondary
#80C981
accent
#E04A48
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA33B8

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

Preview Lab → · Contrast checker → · Palette generator →

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