#BA33B7#BA33B7

#BA33B7 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.5% C 0.222 H 329.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA33B7
RGBrgb(186, 51, 183)
HSLhsl(301, 57%, 46%)
HSVhsv(301, 73%, 73%)
CMYKcmyk(0%, 72.6%, 1.6%, 27.1%)
CIE-LABlab(47.27, 67.63, -41.35)
CIE-LCHlch(47.27, 79.28, 328.56°)
OKLaboklab(57.47% 0.1901 -0.1144)
OKLCHoklch(57.47% 0.222 329)
XYZxyz(29.9805, 16.2279, 46.3438)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33B7 #33BA36
analogous
#7A33BA #BA33B7 #BA3374
triadic
#BA33B7 #B7BA33 #33B7BA
tetradic
#BA33B7 #BA7A33 #33BA36 #3374BA
square
#BA33B7 #BA7A33 #33BA36 #3374BA
split-complementary
#BA33B7 #74BA33 #33BA7A
monochromatic
#5A1958 #8A2688 #BA33B7 #D159CF #DF89DD

Accessibility & contrast

On white

4.95
#BA33B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#BA33B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33B7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33B7#FFFFFF#000000##FFFFFF
##BA33B71.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D65BB
Deuteranopia (green-blind)
#5976B4
Tritanopia (blue-blind)
#C04772
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba33b7;
/* rgb */ color: rgb(186, 51, 183);
/* oklch */ color: oklch(57.5% 0.222 329.0);
Tailwind
colors: {
  custom: {
    50: '#d378cd',
    500: '#ba33b7',
    950: '#000000',
  },
}
SCSS
$custom: #ba33b7;
$custom-light: #d378cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33b7",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 183
  },
  "hsl": {
    "h": 301.333,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57469,
    "c": 0.22181,
    "h": 329
  },
  "luminance": 0.16226
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA33B7

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

Preview Lab → · Contrast checker → · Palette generator →

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