#BA37BB#BA37BB

#BA37BB is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.221 H 327.6°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#BA37BB
RGBrgb(186, 55, 187)
HSLhsl(300, 55%, 47%)
HSVhsv(300, 71%, 73%)
CMYKcmyk(0.5%, 70.6%, 0%, 26.7%)
CIE-LABlab(47.96, 66.95, -42.60)
CIE-LCHlch(47.96, 79.36, 327.53°)
OKLaboklab(58.03% 0.1863 -0.118)
OKLCHoklch(58.03% 0.221 327.6)
XYZxyz(30.5851, 16.7615, 48.6284)
Luminance0.1676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37BB #38BB37
analogous
#7837BB #BA37BB #BB377A
triadic
#BA37BB #BBBA37 #37BBBA
tetradic
#BA37BB #BB7837 #38BB37 #377ABB
square
#BA37BB #BB7837 #38BB37 #377ABB
split-complementary
#BA37BB #7ABB37 #37BB78
monochromatic
#5C1B5C #8B298C #BA37BB #CF5FD0 #DD8EDE

Accessibility & contrast

On white

4.83
#BA37BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#BA37BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37BB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37BB#FFFFFF#000000##FFFFFF
##BA37BB1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E67BF
Deuteranopia (green-blind)
#5978B8
Tritanopia (blue-blind)
#C04B76
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba37bb;
/* rgb */ color: rgb(186, 55, 187);
/* oklch */ color: oklch(58.0% 0.221 327.6);
Tailwind
colors: {
  custom: {
    50: '#d27ad0',
    500: '#ba37bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba37bb;
$custom-light: #d27ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37bb",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 187
  },
  "hsl": {
    "h": 299.545,
    "s": 54.545,
    "l": 47.451
  },
  "oklch": {
    "l": 0.58031,
    "c": 0.22053,
    "h": 327.6
  },
  "luminance": 0.16759
}

Semantic roles & 50–950 ramp

primary
#BA37BB
secondary
#86C985
accent
#DE4A4B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA37BB

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

Preview Lab → · Contrast checker → · Palette generator →

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