#BA33A7#BA33A7

#BA33A7 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.6% C 0.210 H 334.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#BA33A7
RGBrgb(186, 51, 167)
HSLhsl(308, 57%, 46%)
HSVhsv(308, 73%, 73%)
CMYKcmyk(0%, 72.6%, 10.2%, 27.1%)
CIE-LABlab(46.44, 65.15, -33.23)
CIE-LCHlch(46.44, 73.13, 332.97°)
OKLaboklab(56.61% 0.1894 -0.0909)
OKLCHoklch(56.61% 0.21 334.4)
XYZxyz(28.4089, 15.5992, 38.0665)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33A7 #33BA46
analogous
#8A33BA #BA33A7 #BA3364
triadic
#BA33A7 #A7BA33 #33A7BA
tetradic
#BA33A7 #BA8A33 #33BA46 #3364BA
square
#BA33A7 #BA8A33 #33BA46 #3364BA
split-complementary
#BA33A7 #64BA33 #33BA8A
monochromatic
#5A1951 #8A267C #BA33A7 #D159C0 #DF89D3

Accessibility & contrast

On white

5.10
#BA33A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#BA33A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33A7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33A7#FFFFFF#000000##FFFFFF
##BA33A71.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3161AA
Deuteranopia (green-blind)
#6175A4
Tritanopia (blue-blind)
#C33F69
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba33a7;
/* rgb */ color: rgb(186, 51, 167);
/* oklch */ color: oklch(56.6% 0.210 334.4);
Tailwind
colors: {
  custom: {
    50: '#d278c1',
    500: '#ba33a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba33a7;
$custom-light: #d278c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33a7",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 167
  },
  "hsl": {
    "h": 308.444,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56606,
    "c": 0.21005,
    "h": 334.4
  },
  "luminance": 0.15597
}

Semantic roles & 50–950 ramp

primary
#BA33A7
secondary
#80C98A
accent
#E05D48
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA33A7

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

Preview Lab → · Contrast checker → · Palette generator →

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