#BA37AC#BA37AC

#BA37AC is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.2% C 0.209 H 332.6°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BA37AC
RGBrgb(186, 55, 172)
HSLhsl(306, 54%, 47%)
HSVhsv(306, 70%, 73%)
CMYKcmyk(0%, 70.4%, 7.5%, 27.1%)
CIE-LABlab(47.17, 64.55, -35.04)
CIE-LCHlch(47.17, 73.45, 331.50°)
OKLaboklab(57.21% 0.1857 -0.0962)
OKLCHoklch(57.21% 0.209 332.6)
XYZxyz(29.0624, 16.1524, 40.6088)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37AC #37BA45
analogous
#8637BA #BA37AC #BA376B
triadic
#BA37AC #ACBA37 #37ACBA
tetradic
#BA37AC #BA8637 #37BA45 #376BBA
square
#BA37AC #BA8637 #37BA45 #376BBA
split-complementary
#BA37AC #6BBA37 #37BA86
monochromatic
#5C1B55 #8B2980 #BA37AC #D05FC4 #DE8ED5

Accessibility & contrast

On white

4.96
#BA37AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#BA37AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37AC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37AC#FFFFFF#000000##FFFFFF
##BA37AC1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3164AF
Deuteranopia (green-blind)
#6176A9
Tritanopia (blue-blind)
#C2446D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba37ac;
/* rgb */ color: rgb(186, 55, 172);
/* oklch */ color: oklch(57.2% 0.209 332.6);
Tailwind
colors: {
  custom: {
    50: '#d27ac5',
    500: '#ba37ac',
    950: '#000000',
  },
}
SCSS
$custom: #ba37ac;
$custom-light: #d27ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37ac",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 306.412,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57213,
    "c": 0.20914,
    "h": 332.6
  },
  "luminance": 0.1615
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA37AC

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

Preview Lab → · Contrast checker → · Palette generator →

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