#BA33B6#BA33B6

#BA33B6 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.221 H 329.3°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BA33B6
RGBrgb(186, 51, 182)
HSLhsl(302, 57%, 46%)
HSVhsv(302, 73%, 73%)
CMYKcmyk(0%, 72.6%, 2.2%, 27.1%)
CIE-LABlab(47.22, 67.47, -40.85)
CIE-LCHlch(47.22, 78.88, 328.81°)
OKLaboklab(57.41% 0.19 -0.1129)
OKLCHoklch(57.41% 0.221 329.3)
XYZxyz(29.8768, 16.1864, 45.7976)
Luminance0.1618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33B6 #33BA37
analogous
#7B33BA #BA33B6 #BA3373
triadic
#BA33B6 #B6BA33 #33B6BA
tetradic
#BA33B6 #BA7B33 #33BA37 #3373BA
square
#BA33B6 #BA7B33 #33BA37 #3373BA
split-complementary
#BA33B6 #73BA33 #33BA7B
monochromatic
#5A1958 #8A2687 #BA33B6 #D159CE #DF89DC

Accessibility & contrast

On white

4.96
#BA33B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#BA33B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33B6
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33B6#FFFFFF#000000##FFFFFF
##BA33B61.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F64BA
Deuteranopia (green-blind)
#5A76B3
Tritanopia (blue-blind)
#C14672
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba33b6;
/* rgb */ color: rgb(186, 51, 182);
/* oklch */ color: oklch(57.4% 0.221 329.3);
Tailwind
colors: {
  custom: {
    50: '#d378cc',
    500: '#ba33b6',
    950: '#000000',
  },
}
SCSS
$custom: #ba33b6;
$custom-light: #d378cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33b6",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 182
  },
  "hsl": {
    "h": 301.778,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57413,
    "c": 0.22105,
    "h": 329.3
  },
  "luminance": 0.16184
}

Semantic roles & 50–950 ramp

primary
#BA33B6
secondary
#80C982
accent
#E04C48
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA33B6

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

Preview Lab → · Contrast checker → · Palette generator →

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