#BA37B8#BA37B8

#BA37B8 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.9% C 0.218 H 328.6°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#BA37B8
RGBrgb(186, 55, 184)
HSLhsl(301, 54%, 47%)
HSVhsv(301, 70%, 73%)
CMYKcmyk(0%, 70.4%, 1.1%, 27.1%)
CIE-LABlab(47.80, 66.46, -41.11)
CIE-LCHlch(47.80, 78.14, 328.26°)
OKLaboklab(57.86% 0.1863 -0.1137)
OKLCHoklch(57.86% 0.218 328.6)
XYZxyz(30.2673, 16.6344, 46.9547)
Luminance0.1663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37B8 #37BA39
analogous
#7B37BA #BA37B8 #BA3777
triadic
#BA37B8 #B8BA37 #37B8BA
tetradic
#BA37B8 #BA7B37 #37BA39 #3777BA
square
#BA37B8 #BA7B37 #37BA39 #3777BA
split-complementary
#BA37B8 #77BA37 #37BA7B
monochromatic
#5C1B5B #8B2989 #BA37B8 #D05FCE #DE8EDC

Accessibility & contrast

On white

4.85
#BA37B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA37B8
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37B8#FFFFFF#000000##FFFFFF
##BA37B81.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2366BC
Deuteranopia (green-blind)
#5B77B5
Tritanopia (blue-blind)
#C04A74
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba37b8;
/* rgb */ color: rgb(186, 55, 184);
/* oklch */ color: oklch(57.9% 0.218 328.6);
Tailwind
colors: {
  custom: {
    50: '#d27ace',
    500: '#ba37b8',
    950: '#000000',
  },
}
SCSS
$custom: #ba37b8;
$custom-light: #d27ace;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37b8",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 300.916,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57862,
    "c": 0.21821,
    "h": 328.6
  },
  "luminance": 0.16632
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA37B8

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

Preview Lab → · Contrast checker → · Palette generator →

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