#BA37B0#BA37B0

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

Color values

HEX#BA37B0
RGBrgb(186, 55, 176)
HSLhsl(305, 54%, 47%)
HSVhsv(305, 70%, 73%)
CMYKcmyk(0%, 70.4%, 5.4%, 27.1%)
CIE-LABlab(47.38, 65.17, -37.08)
CIE-LCHlch(47.38, 74.98, 330.36°)
OKLaboklab(57.43% 0.186 -0.102)
OKLCHoklch(57.43% 0.212 331.2)
XYZxyz(29.4523, 16.3084, 42.6625)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37B0 #37BA41
analogous
#8237BA #BA37B0 #BA376F
triadic
#BA37B0 #B0BA37 #37B0BA
tetradic
#BA37B0 #BA8237 #37BA41 #376FBA
square
#BA37B0 #BA8237 #37BA41 #376FBA
split-complementary
#BA37B0 #6FBA37 #37BA82
monochromatic
#5C1B57 #8B2983 #BA37B0 #D05FC7 #DE8ED7

Accessibility & contrast

On white

4.93
#BA37B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#BA37B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37B0
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37B0#FFFFFF#000000##FFFFFF
##BA37B01.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D65B3
Deuteranopia (green-blind)
#5F77AD
Tritanopia (blue-blind)
#C14670
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba37b0;
/* rgb */ color: rgb(186, 55, 176);
/* oklch */ color: oklch(57.4% 0.212 331.2);
Tailwind
colors: {
  custom: {
    50: '#d27ac8',
    500: '#ba37b0',
    950: '#000000',
  },
}
SCSS
$custom: #ba37b0;
$custom-light: #d27ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37b0",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 176
  },
  "hsl": {
    "h": 304.58,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57425,
    "c": 0.21212,
    "h": 331.2
  },
  "luminance": 0.16306
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA37B0

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

Preview Lab → · Contrast checker → · Palette generator →

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