#BA33A5#BA33A5

#BA33A5 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.209 H 335.1°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA33A5
RGBrgb(186, 51, 165)
HSLhsl(309, 57%, 46%)
HSVhsv(309, 73%, 73%)
CMYKcmyk(0%, 72.6%, 11.3%, 27.1%)
CIE-LABlab(46.35, 64.85, -32.20)
CIE-LCHlch(46.35, 72.40, 333.60°)
OKLaboklab(56.5% 0.1892 -0.088)
OKLCHoklch(56.5% 0.209 335.1)
XYZxyz(28.2254, 15.5258, 37.1003)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33A5 #33BA48
analogous
#8C33BA #BA33A5 #BA3362
triadic
#BA33A5 #A5BA33 #33A5BA
tetradic
#BA33A5 #BA8C33 #33BA48 #3362BA
square
#BA33A5 #BA8C33 #33BA48 #3362BA
split-complementary
#BA33A5 #62BA33 #33BA8C
monochromatic
#5A1950 #8A267A #BA33A5 #D159BF #DF89D1

Accessibility & contrast

On white

5.12
#BA33A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA33A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33A5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33A5#FFFFFF#000000##FFFFFF
##BA33A51.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3361A8
Deuteranopia (green-blind)
#6275A2
Tritanopia (blue-blind)
#C33E68
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba33a5;
/* rgb */ color: rgb(186, 51, 165);
/* oklch */ color: oklch(56.5% 0.209 335.1);
Tailwind
colors: {
  custom: {
    50: '#d378c0',
    500: '#ba33a5',
    950: '#000000',
  },
}
SCSS
$custom: #ba33a5;
$custom-light: #d378c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33a5",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 165
  },
  "hsl": {
    "h": 309.333,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56503,
    "c": 0.20863,
    "h": 335.1
  },
  "luminance": 0.15523
}

Semantic roles & 50–950 ramp

primary
#BA33A5
secondary
#80C98C
accent
#E05F48
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA33A5

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

Preview Lab → · Contrast checker → · Palette generator →

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