#BA37BA#BA37BA

#BA37BA is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.0% C 0.220 H 328.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#BA37BA
RGBrgb(186, 55, 186)
HSLhsl(300, 54%, 47%)
HSVhsv(300, 70%, 73%)
CMYKcmyk(0%, 70.4%, 0%, 27.1%)
CIE-LABlab(47.90, 66.79, -42.11)
CIE-LCHlch(47.90, 78.95, 327.77°)
OKLaboklab(57.97% 0.1863 -0.1166)
OKLCHoklch(57.97% 0.22 328)
XYZxyz(30.4784, 16.7188, 48.0666)
Luminance0.1672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37BA #37BA37
analogous
#7937BA #BA37BA #BA3779
triadic
#BA37BA #BABA37 #37BABA
tetradic
#BA37BA #BA7937 #37BA37 #3779BA
square
#BA37BA #BA7937 #37BA37 #3779BA
split-complementary
#BA37BA #79BA37 #37BA79
monochromatic
#5C1B5C #8B298B #BA37BA #D05FD0 #DE8EDE

Accessibility & contrast

On white

4.83
#BA37BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#BA37BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37BA
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37BA#FFFFFF#000000##FFFFFF
##BA37BA1.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2067BE
Deuteranopia (green-blind)
#5A78B7
Tritanopia (blue-blind)
#C04B75
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba37ba;
/* rgb */ color: rgb(186, 55, 186);
/* oklch */ color: oklch(58.0% 0.220 328.0);
Tailwind
colors: {
  custom: {
    50: '#d27acf',
    500: '#ba37ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba37ba;
$custom-light: #d27acf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37ba",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57974,
    "c": 0.21976,
    "h": 328
  },
  "luminance": 0.16717
}

Semantic roles & 50–950 ramp

primary
#BA37BA
secondary
#85C885
accent
#DE4A4A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA37BA

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

Preview Lab → · Contrast checker → · Palette generator →

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