#BA37A7#BA37A7

#BA37A7 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.0% C 0.205 H 334.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#BA37A7
RGBrgb(186, 55, 167)
HSLhsl(309, 54%, 47%)
HSVhsv(309, 70%, 73%)
CMYKcmyk(0%, 70.4%, 10.2%, 27.1%)
CIE-LABlab(46.93, 63.78, -32.47)
CIE-LCHlch(46.93, 71.57, 333.02°)
OKLaboklab(56.95% 0.1853 -0.0888)
OKLCHoklch(56.95% 0.205 334.4)
XYZxyz(28.5912, 15.9639, 38.1272)
Luminance0.1596 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37A7 #37BA4A
analogous
#8B37BA #BA37A7 #BA3766
triadic
#BA37A7 #A7BA37 #37A7BA
tetradic
#BA37A7 #BA8B37 #37BA4A #3766BA
square
#BA37A7 #BA8B37 #37BA4A #3766BA
split-complementary
#BA37A7 #66BA37 #37BA8B
monochromatic
#5C1B52 #8B297D #BA37A7 #D05FBF #DE8ED2

Accessibility & contrast

On white

5.01
#BA37A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#BA37A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37A7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37A7#FFFFFF#000000##FFFFFF
##BA37A71.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3563AA
Deuteranopia (green-blind)
#6376A4
Tritanopia (blue-blind)
#C3426B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba37a7;
/* rgb */ color: rgb(186, 55, 167);
/* oklch */ color: oklch(57.0% 0.205 334.4);
Tailwind
colors: {
  custom: {
    50: '#d279c1',
    500: '#ba37a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba37a7;
$custom-light: #d279c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37a7",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 167
  },
  "hsl": {
    "h": 308.702,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56954,
    "c": 0.20549,
    "h": 334.4
  },
  "luminance": 0.15962
}

Semantic roles & 50–950 ramp

primary
#BA37A7
secondary
#85C88E
accent
#DE5F4A
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA37A7

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

Preview Lab → · Contrast checker → · Palette generator →

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