#BA37C1#BA37C1

#BA37C1 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.4% C 0.225 H 325.8°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BA37C1
RGBrgb(186, 55, 193)
HSLhsl(297, 56%, 49%)
HSVhsv(297, 72%, 76%)
CMYKcmyk(3.6%, 71.5%, 0%, 24.3%)
CIE-LABlab(48.29, 67.95, -45.57)
CIE-LCHlch(48.29, 81.82, 326.15°)
OKLaboklab(58.38% 0.1863 -0.1267)
OKLCHoklch(58.38% 0.225 325.8)
XYZxyz(31.2409, 17.0238, 52.0822)
Luminance0.1702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37C1 #3EC137
analogous
#7537C1 #BA37C1 #C13783
triadic
#BA37C1 #C1BA37 #37C1BA
tetradic
#BA37C1 #C17537 #3EC137 #3783C1
square
#BA37C1 #C17537 #3EC137 #3783C1
split-complementary
#BA37C1 #83C137 #37C175
monochromatic
#5E1C62 #8C2991 #BA37C1 #CD63D2 #DC92E0

Accessibility & contrast

On white

4.77
#BA37C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#BA37C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37C1
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37C1#FFFFFF#000000##FFFFFF
##BA37C11.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1168C5
Deuteranopia (green-blind)
#5578BE
Tritanopia (blue-blind)
#BF4E79
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba37c1;
/* rgb */ color: rgb(186, 55, 193);
/* oklch */ color: oklch(58.4% 0.225 325.8);
Tailwind
colors: {
  custom: {
    50: '#d37ad4',
    500: '#ba37c1',
    950: '#000000',
  },
}
SCSS
$custom: #ba37c1;
$custom-light: #d37ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37c1",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 193
  },
  "hsl": {
    "h": 296.957,
    "s": 55.645,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58375,
    "c": 0.22523,
    "h": 325.8
  },
  "luminance": 0.17022
}

Semantic roles & 50–950 ramp

primary
#BA37C1
secondary
#8CCB89
accent
#DF4950
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA37C1

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

Preview Lab → · Contrast checker → · Palette generator →

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