#BA37BF#BA37BF

#BA37BF is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.3% C 0.224 H 326.4°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA37BF
RGBrgb(186, 55, 191)
HSLhsl(298, 55%, 48%)
HSVhsv(298, 71%, 75%)
CMYKcmyk(2.6%, 71.2%, 0%, 25.1%)
CIE-LABlab(48.18, 67.61, -44.58)
CIE-LCHlch(48.18, 80.99, 326.60°)
OKLaboklab(58.26% 0.1863 -0.1238)
OKLCHoklch(58.26% 0.224 326.4)
XYZxyz(31.0193, 16.9352, 50.9151)
Luminance0.1693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA37BF #3CBF37
analogous
#7637BF #BA37BF #BF3780
triadic
#BA37BF #BFBA37 #37BFBA
tetradic
#BA37BF #BF7637 #3CBF37 #3780BF
square
#BA37BF #BF7637 #3CBF37 #3780BF
split-complementary
#BA37BF #80BF37 #37BF76
monochromatic
#5D1C60 #8C298F #BA37BF #CE62D2 #DC91DF

Accessibility & contrast

On white

4.79
#BA37BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#BA37BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA37BF
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA37BF#FFFFFF#000000##FFFFFF
##BA37BF1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1668C3
Deuteranopia (green-blind)
#5778BC
Tritanopia (blue-blind)
#BF4D78
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba37bf;
/* rgb */ color: rgb(186, 55, 191);
/* oklch */ color: oklch(58.3% 0.224 326.4);
Tailwind
colors: {
  custom: {
    50: '#d37ad3',
    500: '#ba37bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba37bf;
$custom-light: #d37ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba37bf",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 191
  },
  "hsl": {
    "h": 297.794,
    "s": 55.285,
    "l": 48.235
  },
  "oklch": {
    "l": 0.58259,
    "c": 0.22366,
    "h": 326.4
  },
  "luminance": 0.16933
}

Semantic roles & 50–950 ramp

primary
#BA37BF
secondary
#8ACA88
accent
#DF494F
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA37BF

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

Preview Lab → · Contrast checker → · Palette generator →

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