#BA33A6#BA33A6

#BA33A6 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.6% C 0.209 H 334.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA33A6
RGBrgb(186, 51, 166)
HSLhsl(309, 57%, 46%)
HSVhsv(309, 73%, 73%)
CMYKcmyk(0%, 72.6%, 10.8%, 27.1%)
CIE-LABlab(46.40, 65.00, -32.71)
CIE-LCHlch(46.40, 72.77, 333.28°)
OKLaboklab(56.56% 0.1893 -0.0894)
OKLCHoklch(56.56% 0.209 334.7)
XYZxyz(28.3168, 15.5624, 37.5815)
Luminance0.1556 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33A6 #33BA47
analogous
#8B33BA #BA33A6 #BA3363
triadic
#BA33A6 #A6BA33 #33A6BA
tetradic
#BA33A6 #BA8B33 #33BA47 #3363BA
square
#BA33A6 #BA8B33 #33BA47 #3363BA
split-complementary
#BA33A6 #63BA33 #33BA8B
monochromatic
#5A1950 #8A267B #BA33A6 #D159C0 #DF89D2

Accessibility & contrast

On white

5.11
#BA33A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA33A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33A6
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33A6#FFFFFF#000000##FFFFFF
##BA33A61.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3261A9
Deuteranopia (green-blind)
#6275A3
Tritanopia (blue-blind)
#C33E69
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba33a6;
/* rgb */ color: rgb(186, 51, 166);
/* oklch */ color: oklch(56.6% 0.209 334.7);
Tailwind
colors: {
  custom: {
    50: '#d378c1',
    500: '#ba33a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba33a6;
$custom-light: #d378c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33a6",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 166
  },
  "hsl": {
    "h": 308.889,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56555,
    "c": 0.20934,
    "h": 334.7
  },
  "luminance": 0.1556
}

Semantic roles & 50–950 ramp

primary
#BA33A6
secondary
#80C98B
accent
#E05E48
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA33A6

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

Preview Lab → · Contrast checker → · Palette generator →

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