#BA33B2#BA33B2

#BA33B2 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.2% C 0.218 H 330.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BA33B2
RGBrgb(186, 51, 178)
HSLhsl(304, 57%, 46%)
HSVhsv(304, 73%, 73%)
CMYKcmyk(0%, 72.6%, 4.3%, 27.1%)
CIE-LABlab(47.01, 66.84, -38.84)
CIE-LCHlch(47.01, 77.31, 329.84°)
OKLaboklab(57.19% 0.19 -0.1071)
OKLCHoklch(57.19% 0.218 330.6)
XYZxyz(29.4693, 16.0234, 43.6516)
Luminance0.1602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33B2 #33BA3B
analogous
#7F33BA #BA33B2 #BA336E
triadic
#BA33B2 #B2BA33 #33B2BA
tetradic
#BA33B2 #BA7F33 #33BA3B #336EBA
square
#BA33B2 #BA7F33 #33BA3B #336EBA
split-complementary
#BA33B2 #6EBA33 #33BA7F
monochromatic
#5A1956 #8A2684 #BA33B2 #D159CA #DF89DA

Accessibility & contrast

On white

5.00
#BA33B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#BA33B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33B2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33B2#FFFFFF#000000##FFFFFF
##BA33B21.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B5
Deuteranopia (green-blind)
#5C76AF
Tritanopia (blue-blind)
#C14470
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba33b2;
/* rgb */ color: rgb(186, 51, 178);
/* oklch */ color: oklch(57.2% 0.218 330.6);
Tailwind
colors: {
  custom: {
    50: '#d378c9',
    500: '#ba33b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba33b2;
$custom-light: #d378c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33b2",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 178
  },
  "hsl": {
    "h": 303.556,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57191,
    "c": 0.21806,
    "h": 330.6
  },
  "luminance": 0.16021
}

Semantic roles & 50–950 ramp

primary
#BA33B2
secondary
#80C985
accent
#E05148
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA33B2

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

Preview Lab → · Contrast checker → · Palette generator →

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