#BA33A9#BA33A9

#BA33A9 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.7% C 0.211 H 333.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BA33A9
RGBrgb(186, 51, 169)
HSLhsl(308, 57%, 46%)
HSVhsv(308, 73%, 73%)
CMYKcmyk(0%, 72.6%, 9.1%, 27.1%)
CIE-LABlab(46.54, 65.45, -34.26)
CIE-LCHlch(46.54, 73.87, 332.37°)
OKLaboklab(56.71% 0.1895 -0.0939)
OKLCHoklch(56.71% 0.211 333.6)
XYZxyz(28.5952, 15.6738, 39.0477)
Luminance0.1567 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33A9 #33BA44
analogous
#8833BA #BA33A9 #BA3365
triadic
#BA33A9 #A9BA33 #33A9BA
tetradic
#BA33A9 #BA8833 #33BA44 #3365BA
square
#BA33A9 #BA8833 #33BA44 #3365BA
split-complementary
#BA33A9 #65BA33 #33BA88
monochromatic
#5A1952 #8A267D #BA33A9 #D159C2 #DF89D4

Accessibility & contrast

On white

5.08
#BA33A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#BA33A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33A9
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33A9#FFFFFF#000000##FFFFFF
##BA33A91.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F62AC
Deuteranopia (green-blind)
#6175A6
Tritanopia (blue-blind)
#C3406B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba33a9;
/* rgb */ color: rgb(186, 51, 169);
/* oklch */ color: oklch(56.7% 0.211 333.6);
Tailwind
colors: {
  custom: {
    50: '#d278c3',
    500: '#ba33a9',
    950: '#000000',
  },
}
SCSS
$custom: #ba33a9;
$custom-light: #d278c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33a9",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 169
  },
  "hsl": {
    "h": 307.556,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5671,
    "c": 0.21148,
    "h": 333.6
  },
  "luminance": 0.15671
}

Semantic roles & 50–950 ramp

primary
#BA33A9
secondary
#80C989
accent
#E05B48
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA33A9

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

Preview Lab → · Contrast checker → · Palette generator →

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