#BA37C3#BA37C3

#BA37C3 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.5% C 0.227 H 325.2°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA37C3
RGBrgb(186, 55, 195)
HSLhsl(296, 56%, 49%)
HSVhsv(296, 72%, 76%)
CMYKcmyk(4.6%, 71.8%, 0%, 23.5%)
CIE-LABlab(48.40, 68.29, -46.55)
CIE-LCHlch(48.40, 82.65, 325.72°)
OKLaboklab(58.49% 0.1862 -0.1295)
OKLCHoklch(58.49% 0.227 325.2)
XYZxyz(31.4655, 17.1136, 53.2651)
Luminance0.1711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37C3 #40C337
analogous
#7437C3 #BA37C3 #C33786
triadic
#BA37C3 #C3BA37 #37C3BA
tetradic
#BA37C3 #C37437 #40C337 #3786C3
square
#BA37C3 #C37437 #40C337 #3786C3
split-complementary
#BA37C3 #86C337 #37C374
monochromatic
#5F1C64 #8C2A93 #BA37C3 #CC64D3 #DC94E1

Accessibility & contrast

On white

4.75
#BA37C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#BA37C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37C3
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37C3#FFFFFF#000000##FFFFFF
##BA37C31.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A69C7
Deuteranopia (green-blind)
#5478C0
Tritanopia (blue-blind)
#BE4F7A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba37c3;
/* rgb */ color: rgb(186, 55, 195);
/* oklch */ color: oklch(58.5% 0.227 325.2);
Tailwind
colors: {
  custom: {
    50: '#d37ad6',
    500: '#ba37c3',
    950: '#000000',
  },
}
SCSS
$custom: #ba37c3;
$custom-light: #d37ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37c3",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 195
  },
  "hsl": {
    "h": 296.143,
    "s": 56,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58493,
    "c": 0.22682,
    "h": 325.2
  },
  "luminance": 0.17112
}

Semantic roles & 50–950 ramp

primary
#BA37C3
secondary
#8ECC8A
accent
#DF4952
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA37C3

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

Preview Lab → · Contrast checker → · Palette generator →

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