#BA37B5#BA37B5

#BA37B5 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.7% C 0.216 H 329.6°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA37B5
RGBrgb(186, 55, 181)
HSLhsl(302, 54%, 47%)
HSVhsv(302, 70%, 73%)
CMYKcmyk(0%, 70.4%, 2.7%, 27.1%)
CIE-LABlab(47.64, 65.97, -39.61)
CIE-LCHlch(47.64, 76.95, 329.02°)
OKLaboklab(57.7% 0.1862 -0.1093)
OKLCHoklch(57.7% 0.216 329.6)
XYZxyz(29.9562, 16.5099, 45.3161)
Luminance0.1651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37B5 #37BA3C
analogous
#7E37BA #BA37B5 #BA3774
triadic
#BA37B5 #B5BA37 #37B5BA
tetradic
#BA37B5 #BA7E37 #37BA3C #3774BA
square
#BA37B5 #BA7E37 #37BA3C #3774BA
split-complementary
#BA37B5 #74BA37 #37BA7E
monochromatic
#5C1B59 #8B2987 #BA37B5 #D05FCB #DE8EDB

Accessibility & contrast

On white

4.88
#BA37B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#BA37B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37B5
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37B5#FFFFFF#000000##FFFFFF
##BA37B51.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2766B9
Deuteranopia (green-blind)
#5C77B2
Tritanopia (blue-blind)
#C14872
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba37b5;
/* rgb */ color: rgb(186, 55, 181);
/* oklch */ color: oklch(57.7% 0.216 329.6);
Tailwind
colors: {
  custom: {
    50: '#d27acb',
    500: '#ba37b5',
    950: '#000000',
  },
}
SCSS
$custom: #ba37b5;
$custom-light: #d27acb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37b5",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 181
  },
  "hsl": {
    "h": 302.29,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57696,
    "c": 0.21591,
    "h": 329.6
  },
  "luminance": 0.16508
}

Semantic roles & 50–950 ramp

primary
#BA37B5
secondary
#85C887
accent
#DE504A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA37B5

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

Preview Lab → · Contrast checker → · Palette generator →

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