#BA37B9#BA37B9

#BA37B9 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.9% C 0.219 H 328.3°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BA37B9
RGBrgb(186, 55, 185)
HSLhsl(300, 54%, 47%)
HSVhsv(300, 70%, 73%)
CMYKcmyk(0%, 70.4%, 0.5%, 27.1%)
CIE-LABlab(47.85, 66.62, -41.61)
CIE-LCHlch(47.85, 78.55, 328.01°)
OKLaboklab(57.92% 0.1863 -0.1151)
OKLCHoklch(57.92% 0.219 328.3)
XYZxyz(30.3725, 16.6764, 47.5087)
Luminance0.1667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37B9 #37BA38
analogous
#7A37BA #BA37B9 #BA3778
triadic
#BA37B9 #B9BA37 #37B9BA
tetradic
#BA37B9 #BA7A37 #37BA38 #3778BA
square
#BA37B9 #BA7A37 #37BA38 #3778BA
split-complementary
#BA37B9 #78BA37 #37BA7A
monochromatic
#5C1B5B #8B298A #BA37B9 #D05FCF #DE8EDD

Accessibility & contrast

On white

4.84
#BA37B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#BA37B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37B9
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37B9#FFFFFF#000000##FFFFFF
##BA37B91.004.844.334.84
#FFFFFF4.841.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2167BD
Deuteranopia (green-blind)
#5A78B6
Tritanopia (blue-blind)
#C04A74
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba37b9;
/* rgb */ color: rgb(186, 55, 185);
/* oklch */ color: oklch(57.9% 0.219 328.3);
Tailwind
colors: {
  custom: {
    50: '#d27ace',
    500: '#ba37b9',
    950: '#000000',
  },
}
SCSS
$custom: #ba37b9;
$custom-light: #d27ace;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37b9",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 185
  },
  "hsl": {
    "h": 300.458,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57918,
    "c": 0.21898,
    "h": 328.3
  },
  "luminance": 0.16674
}

Semantic roles & 50–950 ramp

primary
#BA37B9
secondary
#85C885
accent
#DE4B4A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA37B9

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

Preview Lab → · Contrast checker → · Palette generator →

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