#BA37B7#BA37B7

#BA37B7 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.8% C 0.217 H 328.9°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BA37B7
RGBrgb(186, 55, 183)
HSLhsl(301, 54%, 47%)
HSVhsv(301, 70%, 73%)
CMYKcmyk(0%, 70.4%, 1.6%, 27.1%)
CIE-LABlab(47.74, 66.30, -40.61)
CIE-LCHlch(47.74, 77.74, 328.51°)
OKLaboklab(57.81% 0.1862 -0.1122)
OKLCHoklch(57.81% 0.217 328.9)
XYZxyz(30.1629, 16.5926, 46.4046)
Luminance0.1659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37B7 #37BA3A
analogous
#7C37BA #BA37B7 #BA3776
triadic
#BA37B7 #B7BA37 #37B7BA
tetradic
#BA37B7 #BA7C37 #37BA3A #3776BA
square
#BA37B7 #BA7C37 #37BA3A #3776BA
split-complementary
#BA37B7 #76BA37 #37BA7C
monochromatic
#5C1B5A #8B2989 #BA37B7 #D05FCD #DE8EDC

Accessibility & contrast

On white

4.86
#BA37B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#BA37B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37B7
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37B7#FFFFFF#000000##FFFFFF
##BA37B71.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2466BB
Deuteranopia (green-blind)
#5B77B4
Tritanopia (blue-blind)
#C04973
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba37b7;
/* rgb */ color: rgb(186, 55, 183);
/* oklch */ color: oklch(57.8% 0.217 328.9);
Tailwind
colors: {
  custom: {
    50: '#d27acd',
    500: '#ba37b7',
    950: '#000000',
  },
}
SCSS
$custom: #ba37b7;
$custom-light: #d27acd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37b7",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 183
  },
  "hsl": {
    "h": 301.374,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57806,
    "c": 0.21744,
    "h": 328.9
  },
  "luminance": 0.1659
}

Semantic roles & 50–950 ramp

primary
#BA37B7
secondary
#85C886
accent
#DE4D4A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA37B7

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

Preview Lab → · Contrast checker → · Palette generator →

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