#BA33B4#BA33B4

#BA33B4 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.3% C 0.220 H 329.9°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#BA33B4
RGBrgb(186, 51, 180)
HSLhsl(303, 57%, 46%)
HSVhsv(303, 73%, 73%)
CMYKcmyk(0%, 72.6%, 3.2%, 27.1%)
CIE-LABlab(47.11, 67.16, -39.85)
CIE-LCHlch(47.11, 78.09, 329.32°)
OKLaboklab(57.3% 0.19 -0.11)
OKLCHoklch(57.3% 0.22 329.9)
XYZxyz(29.6716, 16.1043, 44.7168)
Luminance0.1610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33B4 #33BA39
analogous
#7D33BA #BA33B4 #BA3371
triadic
#BA33B4 #B4BA33 #33B4BA
tetradic
#BA33B4 #BA7D33 #33BA39 #3371BA
square
#BA33B4 #BA7D33 #33BA39 #3371BA
split-complementary
#BA33B4 #71BA33 #33BA7D
monochromatic
#5A1957 #8A2686 #BA33B4 #D159CC #DF89DB

Accessibility & contrast

On white

4.98
#BA33B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#BA33B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33B4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33B4#FFFFFF#000000##FFFFFF
##BA33B41.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2264B8
Deuteranopia (green-blind)
#5B76B1
Tritanopia (blue-blind)
#C14571
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba33b4;
/* rgb */ color: rgb(186, 51, 180);
/* oklch */ color: oklch(57.3% 0.220 329.9);
Tailwind
colors: {
  custom: {
    50: '#d378cb',
    500: '#ba33b4',
    950: '#000000',
  },
}
SCSS
$custom: #ba33b4;
$custom-light: #d378cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33b4",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 180
  },
  "hsl": {
    "h": 302.667,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57302,
    "c": 0.21956,
    "h": 329.9
  },
  "luminance": 0.16102
}

Semantic roles & 50–950 ramp

primary
#BA33B4
secondary
#80C983
accent
#E04E48
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA33B4

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

Preview Lab → · Contrast checker → · Palette generator →

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