#BA37B3#BA37B3

#BA37B3 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.6% C 0.214 H 330.2°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BA37B3
RGBrgb(186, 55, 179)
HSLhsl(303, 54%, 47%)
HSVhsv(303, 70%, 73%)
CMYKcmyk(0%, 70.4%, 3.8%, 27.1%)
CIE-LABlab(47.53, 65.65, -38.60)
CIE-LCHlch(47.53, 76.16, 329.55°)
OKLaboklab(57.59% 0.1861 -0.1064)
OKLCHoklch(57.59% 0.214 330.2)
XYZxyz(29.7524, 16.4284, 44.2431)
Luminance0.1643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37B3 #37BA3E
analogous
#8037BA #BA37B3 #BA3772
triadic
#BA37B3 #B3BA37 #37B3BA
tetradic
#BA37B3 #BA8037 #37BA3E #3772BA
square
#BA37B3 #BA8037 #37BA3E #3772BA
split-complementary
#BA37B3 #72BA37 #37BA80
monochromatic
#5C1B58 #8B2986 #BA37B3 #D05FCA #DE8ED9

Accessibility & contrast

On white

4.90
#BA37B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#BA37B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37B3
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37B3#FFFFFF#000000##FFFFFF
##BA37B31.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2965B6
Deuteranopia (green-blind)
#5D77B0
Tritanopia (blue-blind)
#C14771
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba37b3;
/* rgb */ color: rgb(186, 55, 179);
/* oklch */ color: oklch(57.6% 0.214 330.2);
Tailwind
colors: {
  custom: {
    50: '#d27aca',
    500: '#ba37b3',
    950: '#000000',
  },
}
SCSS
$custom: #ba37b3;
$custom-light: #d27aca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37b3",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 179
  },
  "hsl": {
    "h": 303.206,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57587,
    "c": 0.21439,
    "h": 330.2
  },
  "luminance": 0.16426
}

Semantic roles & 50–950 ramp

primary
#BA37B3
secondary
#85C888
accent
#DE524A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA37B3

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

Preview Lab → · Contrast checker → · Palette generator →

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