#BA33B5#BA33B5

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

Color values

HEX#BA33B5
RGBrgb(186, 51, 181)
HSLhsl(302, 57%, 46%)
HSVhsv(302, 73%, 73%)
CMYKcmyk(0%, 72.6%, 2.7%, 27.1%)
CIE-LABlab(47.16, 67.31, -40.35)
CIE-LCHlch(47.16, 78.48, 329.06°)
OKLaboklab(57.36% 0.19 -0.1115)
OKLCHoklch(57.36% 0.22 329.6)
XYZxyz(29.7738, 16.1452, 45.2553)
Luminance0.1614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33B5 #33BA38
analogous
#7C33BA #BA33B5 #BA3372
triadic
#BA33B5 #B5BA33 #33B5BA
tetradic
#BA33B5 #BA7C33 #33BA38 #3372BA
square
#BA33B5 #BA7C33 #33BA38 #3372BA
split-complementary
#BA33B5 #72BA33 #33BA7C
monochromatic
#5A1958 #8A2686 #BA33B5 #D159CD #DF89DB

Accessibility & contrast

On white

4.97
#BA33B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#BA33B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33B5
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33B5#FFFFFF#000000##FFFFFF
##BA33B51.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2164B9
Deuteranopia (green-blind)
#5B76B2
Tritanopia (blue-blind)
#C14671
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba33b5;
/* rgb */ color: rgb(186, 51, 181);
/* oklch */ color: oklch(57.4% 0.220 329.6);
Tailwind
colors: {
  custom: {
    50: '#d378cb',
    500: '#ba33b5',
    950: '#000000',
  },
}
SCSS
$custom: #ba33b5;
$custom-light: #d378cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33b5",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 181
  },
  "hsl": {
    "h": 302.222,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57357,
    "c": 0.2203,
    "h": 329.6
  },
  "luminance": 0.16143
}

Semantic roles & 50–950 ramp

primary
#BA33B5
secondary
#80C983
accent
#E04D48
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA33B5

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

Preview Lab → · Contrast checker → · Palette generator →

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