#BA37C4#BA37C4

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

Color values

HEX#BA37C4
RGBrgb(186, 55, 196)
HSLhsl(296, 56%, 49%)
HSVhsv(296, 72%, 77%)
CMYKcmyk(5.1%, 71.9%, 0%, 23.1%)
CIE-LABlab(48.46, 68.46, -47.04)
CIE-LCHlch(48.46, 83.06, 325.51°)
OKLaboklab(58.55% 0.1862 -0.1309)
OKLCHoklch(58.55% 0.228 324.9)
XYZxyz(31.5789, 17.1590, 53.8626)
Luminance0.1716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37C4 #41C437
analogous
#7437C4 #BA37C4 #C43788
triadic
#BA37C4 #C4BA37 #37C4BA
tetradic
#BA37C4 #C47437 #41C437 #3788C4
square
#BA37C4 #C47437 #41C437 #3788C4
split-complementary
#BA37C4 #88C437 #37C474
monochromatic
#5F1C64 #8D2A94 #BA37C4 #CC65D4 #DC94E1

Accessibility & contrast

On white

4.74
#BA37C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#BA37C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37C4
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37C4#FFFFFF#000000##FFFFFF
##BA37C41.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0669C8
Deuteranopia (green-blind)
#5378C1
Tritanopia (blue-blind)
#BE4F7B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba37c4;
/* rgb */ color: rgb(186, 55, 196);
/* oklch */ color: oklch(58.6% 0.228 324.9);
Tailwind
colors: {
  custom: {
    50: '#d37bd6',
    500: '#ba37c4',
    950: '#000000',
  },
}
SCSS
$custom: #ba37c4;
$custom-light: #d37bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37c4",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 196
  },
  "hsl": {
    "h": 295.745,
    "s": 56.175,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58552,
    "c": 0.22761,
    "h": 324.9
  },
  "luminance": 0.17157
}

Semantic roles & 50–950 ramp

primary
#BA37C4
secondary
#8FCC8B
accent
#DF4853
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA37C4

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

Preview Lab → · Contrast checker → · Palette generator →

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