#BA37BC#BA37BC

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

Color values

HEX#BA37BC
RGBrgb(186, 55, 188)
HSLhsl(299, 55%, 48%)
HSVhsv(299, 71%, 74%)
CMYKcmyk(1.1%, 70.7%, 0%, 26.3%)
CIE-LABlab(48.01, 67.11, -43.10)
CIE-LCHlch(48.01, 79.76, 327.29°)
OKLaboklab(58.09% 0.1863 -0.1195)
OKLCHoklch(58.09% 0.221 327.3)
XYZxyz(30.6925, 16.8045, 49.1942)
Luminance0.1680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37BC #39BC37
analogous
#7837BC #BA37BC #BC377B
triadic
#BA37BC #BCBA37 #37BCBA
tetradic
#BA37BC #BC7837 #39BC37 #377BBC
square
#BA37BC #BC7837 #39BC37 #377BBC
split-complementary
#BA37BC #7BBC37 #37BC78
monochromatic
#5C1B5D #8B298D #BA37BC #CF60D0 #DD8FDE

Accessibility & contrast

On white

4.82
#BA37BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#BA37BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37BC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37BC#FFFFFF#000000##FFFFFF
##BA37BC1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D67C0
Deuteranopia (green-blind)
#5878B9
Tritanopia (blue-blind)
#BF4B76
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba37bc;
/* rgb */ color: rgb(186, 55, 188);
/* oklch */ color: oklch(58.1% 0.221 327.3);
Tailwind
colors: {
  custom: {
    50: '#d27ad1',
    500: '#ba37bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba37bc;
$custom-light: #d27ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37bc",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 188
  },
  "hsl": {
    "h": 299.098,
    "s": 54.733,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58087,
    "c": 0.22131,
    "h": 327.3
  },
  "luminance": 0.16802
}

Semantic roles & 50–950 ramp

primary
#BA37BC
secondary
#87C986
accent
#DE4A4C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA37BC

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

Preview Lab → · Contrast checker → · Palette generator →

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