#BA37C5#BA37C5

#BA37C5 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.6% C 0.228 H 324.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA37C5
RGBrgb(186, 55, 197)
HSLhsl(295, 56%, 49%)
HSVhsv(295, 72%, 77%)
CMYKcmyk(5.6%, 72.1%, 0%, 22.7%)
CIE-LABlab(48.52, 68.63, -47.53)
CIE-LCHlch(48.52, 83.48, 325.30°)
OKLaboklab(58.61% 0.1862 -0.1324)
OKLCHoklch(58.61% 0.228 324.6)
XYZxyz(31.6931, 17.2047, 54.4640)
Luminance0.1720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37C5 #42C537
analogous
#7337C5 #BA37C5 #C53789
triadic
#BA37C5 #C5BA37 #37C5BA
tetradic
#BA37C5 #C57337 #42C537 #3789C5
square
#BA37C5 #C57337 #42C537 #3789C5
split-complementary
#BA37C5 #89C537 #37C573
monochromatic
#601C65 #8D2A95 #BA37C5 #CB65D4 #DB95E1

Accessibility & contrast

On white

4.73
#BA37C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#BA37C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37C5
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37C5#FFFFFF#000000##FFFFFF
##BA37C51.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0269C9
Deuteranopia (green-blind)
#5379C2
Tritanopia (blue-blind)
#BE507B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba37c5;
/* rgb */ color: rgb(186, 55, 197);
/* oklch */ color: oklch(58.6% 0.228 324.6);
Tailwind
colors: {
  custom: {
    50: '#d37bd7',
    500: '#ba37c5',
    950: '#000000',
  },
}
SCSS
$custom: #ba37c5;
$custom-light: #d37bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37c5",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 197
  },
  "hsl": {
    "h": 295.352,
    "s": 56.349,
    "l": 49.412
  },
  "oklch": {
    "l": 0.58611,
    "c": 0.22841,
    "h": 324.6
  },
  "luminance": 0.17203
}

Semantic roles & 50–950 ramp

primary
#BA37C5
secondary
#90CD8B
accent
#E04854
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA37C5

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

Preview Lab → · Contrast checker → · Palette generator →

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