#BA37A6#BA37A6

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

Color values

HEX#BA37A6
RGBrgb(186, 55, 166)
HSLhsl(309, 54%, 47%)
HSVhsv(309, 70%, 73%)
CMYKcmyk(0%, 70.4%, 10.8%, 27.1%)
CIE-LABlab(46.88, 63.63, -31.96)
CIE-LCHlch(46.88, 71.20, 333.33°)
OKLaboklab(56.9% 0.1852 -0.0873)
OKLCHoklch(56.9% 0.205 334.8)
XYZxyz(28.4991, 15.9271, 37.6423)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37A6 #37BA4B
analogous
#8C37BA #BA37A6 #BA3765
triadic
#BA37A6 #A6BA37 #37A6BA
tetradic
#BA37A6 #BA8C37 #37BA4B #3765BA
square
#BA37A6 #BA8C37 #37BA4B #3765BA
split-complementary
#BA37A6 #65BA37 #37BA8C
monochromatic
#5C1B52 #8B297C #BA37A6 #D05FBE #DE8ED1

Accessibility & contrast

On white

5.02
#BA37A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA37A6
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37A6#FFFFFF#000000##FFFFFF
##BA37A61.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3663A9
Deuteranopia (green-blind)
#6476A3
Tritanopia (blue-blind)
#C3416A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba37a6;
/* rgb */ color: rgb(186, 55, 166);
/* oklch */ color: oklch(56.9% 0.205 334.8);
Tailwind
colors: {
  custom: {
    50: '#d279c1',
    500: '#ba37a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba37a6;
$custom-light: #d279c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37a6",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 166
  },
  "hsl": {
    "h": 309.16,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56904,
    "c": 0.20477,
    "h": 334.8
  },
  "luminance": 0.15925
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA37A6

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

Preview Lab → · Contrast checker → · Palette generator →

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