#BA37AB#BA37AB

#BA37AB is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.2% C 0.208 H 333.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA37AB
RGBrgb(186, 55, 171)
HSLhsl(307, 54%, 47%)
HSVhsv(307, 70%, 73%)
CMYKcmyk(0%, 70.4%, 8.1%, 27.1%)
CIE-LABlab(47.12, 64.39, -34.53)
CIE-LCHlch(47.12, 73.07, 331.80°)
OKLaboklab(57.16% 0.1857 -0.0947)
OKLCHoklch(57.16% 0.208 333)
XYZxyz(28.9667, 16.1141, 40.1049)
Luminance0.1611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37AB #37BA46
analogous
#8737BA #BA37AB #BA376A
triadic
#BA37AB #ABBA37 #37ABBA
tetradic
#BA37AB #BA8737 #37BA46 #376ABA
square
#BA37AB #BA8737 #37BA46 #376ABA
split-complementary
#BA37AB #6ABA37 #37BA87
monochromatic
#5C1B54 #8B2980 #BA37AB #D05FC3 #DE8ED4

Accessibility & contrast

On white

4.97
#BA37AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#BA37AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37AB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37AB#FFFFFF#000000##FFFFFF
##BA37AB1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3264AE
Deuteranopia (green-blind)
#6176A8
Tritanopia (blue-blind)
#C2446D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba37ab;
/* rgb */ color: rgb(186, 55, 171);
/* oklch */ color: oklch(57.2% 0.208 333.0);
Tailwind
colors: {
  custom: {
    50: '#d27ac4',
    500: '#ba37ab',
    950: '#000000',
  },
}
SCSS
$custom: #ba37ab;
$custom-light: #d27ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37ab",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 306.87,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57161,
    "c": 0.2084,
    "h": 333
  },
  "luminance": 0.16112
}

Semantic roles & 50–950 ramp

primary
#BA37AB
secondary
#85C88C
accent
#DE5B4A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA37AB

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

Preview Lab → · Contrast checker → · Palette generator →

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