#BA37AA#BA37AA

#BA37AA is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.1% C 0.208 H 333.3°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#BA37AA
RGBrgb(186, 55, 170)
HSLhsl(307, 54%, 47%)
HSVhsv(307, 70%, 73%)
CMYKcmyk(0%, 70.4%, 8.6%, 27.1%)
CIE-LABlab(47.07, 64.24, -34.02)
CIE-LCHlch(47.07, 72.69, 332.10°)
OKLaboklab(57.11% 0.1856 -0.0932)
OKLCHoklch(57.11% 0.208 333.3)
XYZxyz(28.8718, 16.0762, 39.6048)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37AA #37BA47
analogous
#8837BA #BA37AA #BA3769
triadic
#BA37AA #AABA37 #37AABA
tetradic
#BA37AA #BA8837 #37BA47 #3769BA
square
#BA37AA #BA8837 #37BA47 #3769BA
split-complementary
#BA37AA #69BA37 #37BA88
monochromatic
#5C1B54 #8B297F #BA37AA #D05FC2 #DE8ED4

Accessibility & contrast

On white

4.98
#BA37AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#BA37AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37AA
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37AA#FFFFFF#000000##FFFFFF
##BA37AA1.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AD
Deuteranopia (green-blind)
#6276A7
Tritanopia (blue-blind)
#C2436C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba37aa;
/* rgb */ color: rgb(186, 55, 170);
/* oklch */ color: oklch(57.1% 0.208 333.3);
Tailwind
colors: {
  custom: {
    50: '#d27ac3',
    500: '#ba37aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba37aa;
$custom-light: #d27ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37aa",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 170
  },
  "hsl": {
    "h": 307.328,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57109,
    "c": 0.20767,
    "h": 333.3
  },
  "luminance": 0.16074
}

Semantic roles & 50–950 ramp

primary
#BA37AA
secondary
#85C88D
accent
#DE5C4A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA37AA

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

Preview Lab → · Contrast checker → · Palette generator →

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