#BA37A5#BA37A5

#BA37A5 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.9% C 0.204 H 335.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA37A5
RGBrgb(186, 55, 165)
HSLhsl(310, 54%, 47%)
HSVhsv(310, 70%, 73%)
CMYKcmyk(0%, 70.4%, 11.3%, 27.1%)
CIE-LABlab(46.83, 63.48, -31.44)
CIE-LCHlch(46.83, 70.84, 333.65°)
OKLaboklab(56.85% 0.1851 -0.0858)
OKLCHoklch(56.85% 0.204 335.1)
XYZxyz(28.4077, 15.8905, 37.1610)
Luminance0.1589 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37A5 #37BA4C
analogous
#8D37BA #BA37A5 #BA3764
triadic
#BA37A5 #A5BA37 #37A5BA
tetradic
#BA37A5 #BA8D37 #37BA4C #3764BA
square
#BA37A5 #BA8D37 #37BA4C #3764BA
split-complementary
#BA37A5 #64BA37 #37BA8D
monochromatic
#5C1B51 #8B297B #BA37A5 #D05FBD #DE8ED1

Accessibility & contrast

On white

5.03
#BA37A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#BA37A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37A5
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37A5#FFFFFF#000000##FFFFFF
##BA37A51.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3763A8
Deuteranopia (green-blind)
#6476A2
Tritanopia (blue-blind)
#C3416A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba37a5;
/* rgb */ color: rgb(186, 55, 165);
/* oklch */ color: oklch(56.9% 0.204 335.1);
Tailwind
colors: {
  custom: {
    50: '#d279c0',
    500: '#ba37a5',
    950: '#000000',
  },
}
SCSS
$custom: #ba37a5;
$custom-light: #d279c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37a5",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 165
  },
  "hsl": {
    "h": 309.618,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56853,
    "c": 0.20405,
    "h": 335.1
  },
  "luminance": 0.15888
}

Semantic roles & 50–950 ramp

primary
#BA37A5
secondary
#85C88F
accent
#DE624A
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA37A5

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

Preview Lab → · Contrast checker → · Palette generator →

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