#BA37B2#BA37B2

#BA37B2 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.5% C 0.214 H 330.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA37B2
RGBrgb(186, 55, 178)
HSLhsl(304, 54%, 47%)
HSVhsv(304, 70%, 73%)
CMYKcmyk(0%, 70.4%, 4.3%, 27.1%)
CIE-LABlab(47.48, 65.49, -38.09)
CIE-LCHlch(47.48, 75.76, 329.82°)
OKLaboklab(57.53% 0.1861 -0.105)
OKLCHoklch(57.53% 0.214 330.6)
XYZxyz(29.6517, 16.3881, 43.7124)
Luminance0.1639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37B2 #37BA3F
analogous
#8137BA #BA37B2 #BA3771
triadic
#BA37B2 #B2BA37 #37B2BA
tetradic
#BA37B2 #BA8137 #37BA3F #3771BA
square
#BA37B2 #BA8137 #37BA3F #3771BA
split-complementary
#BA37B2 #71BA37 #37BA81
monochromatic
#5C1B58 #8B2985 #BA37B2 #D05FC9 #DE8ED9

Accessibility & contrast

On white

4.91
#BA37B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#BA37B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37B2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37B2#FFFFFF#000000##FFFFFF
##BA37B21.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B65B5
Deuteranopia (green-blind)
#5E77AF
Tritanopia (blue-blind)
#C14771
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba37b2;
/* rgb */ color: rgb(186, 55, 178);
/* oklch */ color: oklch(57.5% 0.214 330.6);
Tailwind
colors: {
  custom: {
    50: '#d27ac9',
    500: '#ba37b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba37b2;
$custom-light: #d27ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37b2",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 303.664,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57532,
    "c": 0.21362,
    "h": 330.6
  },
  "luminance": 0.16386
}

Semantic roles & 50–950 ramp

primary
#BA37B2
secondary
#85C889
accent
#DE534A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA37B2

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

Preview Lab → · Contrast checker → · Palette generator →

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