#BA33A8#BA33A8

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

Color values

HEX#BA33A8
RGBrgb(186, 51, 168)
HSLhsl(308, 57%, 46%)
HSVhsv(308, 73%, 73%)
CMYKcmyk(0%, 72.6%, 9.7%, 27.1%)
CIE-LABlab(46.49, 65.30, -33.75)
CIE-LCHlch(46.49, 73.50, 332.67°)
OKLaboklab(56.66% 0.1894 -0.0924)
OKLCHoklch(56.66% 0.211 334)
XYZxyz(28.5017, 15.6364, 38.5552)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33A8 #33BA45
analogous
#8933BA #BA33A8 #BA3365
triadic
#BA33A8 #A8BA33 #33A8BA
tetradic
#BA33A8 #BA8933 #33BA45 #3365BA
square
#BA33A8 #BA8933 #33BA45 #3365BA
split-complementary
#BA33A8 #65BA33 #33BA89
monochromatic
#5A1951 #8A267D #BA33A8 #D159C1 #DF89D3

Accessibility & contrast

On white

5.09
#BA33A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA33A8
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33A8#FFFFFF#000000##FFFFFF
##BA33A81.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3062AB
Deuteranopia (green-blind)
#6175A5
Tritanopia (blue-blind)
#C33F6A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba33a8;
/* rgb */ color: rgb(186, 51, 168);
/* oklch */ color: oklch(56.7% 0.211 334.0);
Tailwind
colors: {
  custom: {
    50: '#d278c2',
    500: '#ba33a8',
    950: '#000000',
  },
}
SCSS
$custom: #ba33a8;
$custom-light: #d278c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33a8",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 168
  },
  "hsl": {
    "h": 308,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56658,
    "c": 0.21076,
    "h": 334
  },
  "luminance": 0.15634
}

Semantic roles & 50–950 ramp

primary
#BA33A8
secondary
#80C98A
accent
#E05C48
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA33A8

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

Preview Lab → · Contrast checker → · Palette generator →

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