#BA37AD#BA37AD

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

Color values

HEX#BA37AD
RGBrgb(186, 55, 173)
HSLhsl(306, 54%, 47%)
HSVhsv(306, 70%, 73%)
CMYKcmyk(0%, 70.4%, 7%, 27.1%)
CIE-LABlab(47.22, 64.70, -35.55)
CIE-LCHlch(47.22, 73.83, 331.21°)
OKLaboklab(57.27% 0.1858 -0.0976)
OKLCHoklch(57.27% 0.21 332.3)
XYZxyz(29.1588, 16.1910, 41.1165)
Luminance0.1619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37AD #37BA44
analogous
#8537BA #BA37AD #BA376C
triadic
#BA37AD #ADBA37 #37ADBA
tetradic
#BA37AD #BA8537 #37BA44 #376CBA
square
#BA37AD #BA8537 #37BA44 #376CBA
split-complementary
#BA37AD #6CBA37 #37BA85
monochromatic
#5C1B55 #8B2981 #BA37AD #D05FC4 #DE8ED6

Accessibility & contrast

On white

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

On black

4.24
#BA37AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA37AD#FFFFFF#000000##FFFFFF
##BA37AD1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3064B0
Deuteranopia (green-blind)
#6077AA
Tritanopia (blue-blind)
#C2456E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba37ad;
/* rgb */ color: rgb(186, 55, 173);
/* oklch */ color: oklch(57.3% 0.210 332.3);
Tailwind
colors: {
  custom: {
    50: '#d27ac6',
    500: '#ba37ad',
    950: '#000000',
  },
}
SCSS
$custom: #ba37ad;
$custom-light: #d27ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37ad",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 173
  },
  "hsl": {
    "h": 305.954,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57265,
    "c": 0.20988,
    "h": 332.3
  },
  "luminance": 0.16189
}

Semantic roles & 50–950 ramp

primary
#BA37AD
secondary
#85C88B
accent
#DE594A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA37AD

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

Preview Lab → · Contrast checker → · Palette generator →

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