#BA33AA#BA33AA

#BA33AA is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.8% C 0.212 H 333.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BA33AA
RGBrgb(186, 51, 170)
HSLhsl(307, 57%, 46%)
HSVhsv(307, 73%, 73%)
CMYKcmyk(0%, 72.6%, 8.6%, 27.1%)
CIE-LABlab(46.59, 65.60, -34.77)
CIE-LCHlch(46.59, 74.25, 332.07°)
OKLaboklab(56.76% 0.1896 -0.0954)
OKLCHoklch(56.76% 0.212 333.3)
XYZxyz(28.6894, 15.7115, 39.5440)
Luminance0.1571 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33AA #33BA43
analogous
#8733BA #BA33AA #BA3367
triadic
#BA33AA #AABA33 #33AABA
tetradic
#BA33AA #BA8733 #33BA43 #3367BA
square
#BA33AA #BA8733 #33BA43 #3367BA
split-complementary
#BA33AA #67BA33 #33BA87
monochromatic
#5A1952 #8A267E #BA33AA #D159C3 #DF89D4

Accessibility & contrast

On white

5.07
#BA33AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#BA33AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33AA
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33AA#FFFFFF#000000##FFFFFF
##BA33AA1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E62AD
Deuteranopia (green-blind)
#6075A7
Tritanopia (blue-blind)
#C2406B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba33aa;
/* rgb */ color: rgb(186, 51, 170);
/* oklch */ color: oklch(56.8% 0.212 333.3);
Tailwind
colors: {
  custom: {
    50: '#d278c3',
    500: '#ba33aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba33aa;
$custom-light: #d278c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33aa",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 170
  },
  "hsl": {
    "h": 307.111,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56762,
    "c": 0.2122,
    "h": 333.3
  },
  "luminance": 0.15709
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA33AA

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

Preview Lab → · Contrast checker → · Palette generator →

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