#BA37AF#BA37AF

#BA37AF is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.4% C 0.211 H 331.6°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#BA37AF
RGBrgb(186, 55, 175)
HSLhsl(305, 54%, 47%)
HSVhsv(305, 70%, 73%)
CMYKcmyk(0%, 70.4%, 5.9%, 27.1%)
CIE-LABlab(47.33, 65.02, -36.57)
CIE-LCHlch(47.33, 74.60, 330.64°)
OKLaboklab(57.37% 0.1859 -0.1006)
OKLCHoklch(57.37% 0.211 331.6)
XYZxyz(29.3538, 16.2690, 42.1433)
Luminance0.1627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37AF #37BA42
analogous
#8337BA #BA37AF #BA376E
triadic
#BA37AF #AFBA37 #37AFBA
tetradic
#BA37AF #BA8337 #37BA42 #376EBA
square
#BA37AF #BA8337 #37BA42 #376EBA
split-complementary
#BA37AF #6EBA37 #37BA83
monochromatic
#5C1B56 #8B2983 #BA37AF #D05FC6 #DE8ED7

Accessibility & contrast

On white

4.94
#BA37AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#BA37AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37AF
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37AF#FFFFFF#000000##FFFFFF
##BA37AF1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E65B2
Deuteranopia (green-blind)
#5F77AC
Tritanopia (blue-blind)
#C2456F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba37af;
/* rgb */ color: rgb(186, 55, 175);
/* oklch */ color: oklch(57.4% 0.211 331.6);
Tailwind
colors: {
  custom: {
    50: '#d27ac7',
    500: '#ba37af',
    950: '#000000',
  },
}
SCSS
$custom: #ba37af;
$custom-light: #d27ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37af",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 305.038,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57371,
    "c": 0.21137,
    "h": 331.6
  },
  "luminance": 0.16267
}

Semantic roles & 50–950 ramp

primary
#BA37AF
secondary
#85C88A
accent
#DE564A
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA37AF

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

Preview Lab → · Contrast checker → · Palette generator →

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