#BA37BD#BA37BD

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

Color values

HEX#BA37BD
RGBrgb(186, 55, 189)
HSLhsl(299, 55%, 48%)
HSVhsv(299, 71%, 74%)
CMYKcmyk(1.6%, 70.9%, 0%, 25.9%)
CIE-LABlab(48.07, 67.28, -43.60)
CIE-LCHlch(48.07, 80.17, 327.06°)
OKLaboklab(58.15% 0.1863 -0.1209)
OKLCHoklch(58.15% 0.222 327)
XYZxyz(30.8007, 16.8477, 49.7639)
Luminance0.1685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37BD #3ABD37
analogous
#7737BD #BA37BD #BD377D
triadic
#BA37BD #BDBA37 #37BDBA
tetradic
#BA37BD #BD7737 #3ABD37 #377DBD
square
#BA37BD #BD7737 #3ABD37 #377DBD
split-complementary
#BA37BD #7DBD37 #37BD77
monochromatic
#5D1B5E #8B298E #BA37BD #CE60D1 #DD90DF

Accessibility & contrast

On white

4.81
#BA37BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#BA37BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37BD
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37BD#FFFFFF#000000##FFFFFF
##BA37BD1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B67C1
Deuteranopia (green-blind)
#5878BA
Tritanopia (blue-blind)
#BF4C77
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba37bd;
/* rgb */ color: rgb(186, 55, 189);
/* oklch */ color: oklch(58.1% 0.222 327.0);
Tailwind
colors: {
  custom: {
    50: '#d27ad1',
    500: '#ba37bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba37bd;
$custom-light: #d27ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37bd",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 189
  },
  "hsl": {
    "h": 298.657,
    "s": 54.918,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58145,
    "c": 0.22209,
    "h": 327
  },
  "luminance": 0.16846
}

Semantic roles & 50–950 ramp

primary
#BA37BD
secondary
#88C986
accent
#DE4A4D
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA37BD

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

Preview Lab → · Contrast checker → · Palette generator →

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