#BA37A8#BA37A8

#BA37A8 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.0% C 0.206 H 334.0°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BA37A8
RGBrgb(186, 55, 168)
HSLhsl(308, 54%, 47%)
HSVhsv(308, 70%, 73%)
CMYKcmyk(0%, 70.4%, 9.7%, 27.1%)
CIE-LABlab(46.98, 63.93, -32.99)
CIE-LCHlch(46.98, 71.94, 332.71°)
OKLaboklab(57.01% 0.1854 -0.0903)
OKLCHoklch(57.01% 0.206 334)
XYZxyz(28.6840, 16.0011, 38.6160)
Luminance0.1600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37A8 #37BA49
analogous
#8A37BA #BA37A8 #BA3767
triadic
#BA37A8 #A8BA37 #37A8BA
tetradic
#BA37A8 #BA8A37 #37BA49 #3767BA
square
#BA37A8 #BA8A37 #37BA49 #3767BA
split-complementary
#BA37A8 #67BA37 #37BA8A
monochromatic
#5C1B53 #8B297D #BA37A8 #D05FC0 #DE8ED3

Accessibility & contrast

On white

5.00
#BA37A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#BA37A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37A8
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37A8#FFFFFF#000000##FFFFFF
##BA37A81.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3463AB
Deuteranopia (green-blind)
#6376A5
Tritanopia (blue-blind)
#C3426B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba37a8;
/* rgb */ color: rgb(186, 55, 168);
/* oklch */ color: oklch(57.0% 0.206 334.0);
Tailwind
colors: {
  custom: {
    50: '#d27ac2',
    500: '#ba37a8',
    950: '#000000',
  },
}
SCSS
$custom: #ba37a8;
$custom-light: #d27ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37a8",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 168
  },
  "hsl": {
    "h": 308.244,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57006,
    "c": 0.20621,
    "h": 334
  },
  "luminance": 0.15999
}

Semantic roles & 50–950 ramp

primary
#BA37A8
secondary
#85C88E
accent
#DE5E4A
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA37A8

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

Preview Lab → · Contrast checker → · Palette generator →

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