#BA33AF#BA33AF

#BA33AF is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.0% C 0.216 H 331.6°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BA33AF
RGBrgb(186, 51, 175)
HSLhsl(305, 57%, 46%)
HSVhsv(305, 73%, 73%)
CMYKcmyk(0%, 72.6%, 5.9%, 27.1%)
CIE-LABlab(46.85, 66.37, -37.32)
CIE-LCHlch(46.85, 76.14, 330.65°)
OKLaboklab(57.03% 0.1898 -0.1027)
OKLCHoklch(57.03% 0.216 331.6)
XYZxyz(29.1714, 15.9043, 42.0826)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA33AF #33BA3E
analogous
#8233BA #BA33AF #BA336C
triadic
#BA33AF #AFBA33 #33AFBA
tetradic
#BA33AF #BA8233 #33BA3E #336CBA
square
#BA33AF #BA8233 #33BA3E #336CBA
split-complementary
#BA33AF #6CBA33 #33BA82
monochromatic
#5A1955 #8A2682 #BA33AF #D159C8 #DF89D8

Accessibility & contrast

On white

5.02
#BA33AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#BA33AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA33AF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA33AF#FFFFFF#000000##FFFFFF
##BA33AF1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2963B2
Deuteranopia (green-blind)
#5E76AC
Tritanopia (blue-blind)
#C2436E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba33af;
/* rgb */ color: rgb(186, 51, 175);
/* oklch */ color: oklch(57.0% 0.216 331.6);
Tailwind
colors: {
  custom: {
    50: '#d378c7',
    500: '#ba33af',
    950: '#000000',
  },
}
SCSS
$custom: #ba33af;
$custom-light: #d378c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba33af",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 175
  },
  "hsl": {
    "h": 304.889,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57028,
    "c": 0.21584,
    "h": 331.6
  },
  "luminance": 0.15902
}

Semantic roles & 50–950 ramp

primary
#BA33AF
secondary
#80C986
accent
#E05448
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA33AF

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

Preview Lab → · Contrast checker → · Palette generator →

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