#BA36B7#BA36B7

#BA36B7 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.7% C 0.219 H 328.9°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA36B7
RGBrgb(186, 54, 183)
HSLhsl(301, 55%, 47%)
HSVhsv(301, 71%, 73%)
CMYKcmyk(0%, 71%, 1.6%, 27.1%)
CIE-LABlab(47.62, 66.64, -40.80)
CIE-LCHlch(47.62, 78.14, 328.52°)
OKLaboklab(57.72% 0.1872 -0.1128)
OKLCHoklch(57.72% 0.219 328.9)
XYZxyz(30.1158, 16.4986, 46.3889)
Luminance0.1650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36B7 #36BA39
analogous
#7B36BA #BA36B7 #BA3675
triadic
#BA36B7 #B7BA36 #36B7BA
tetradic
#BA36B7 #BA7B36 #36BA39 #3675BA
square
#BA36B7 #BA7B36 #36BA39 #3675BA
split-complementary
#BA36B7 #75BA36 #36BA7B
monochromatic
#5B1A5A #8B2888 #BA36B7 #D05DCD #DE8DDC

Accessibility & contrast

On white

4.88
#BA36B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#BA36B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA36B7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36B7#FFFFFF#000000##FFFFFF
##BA36B71.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2366BB
Deuteranopia (green-blind)
#5B77B4
Tritanopia (blue-blind)
#C04973
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba36b7;
/* rgb */ color: rgb(186, 54, 183);
/* oklch */ color: oklch(57.7% 0.219 328.9);
Tailwind
colors: {
  custom: {
    50: '#d27acd',
    500: '#ba36b7',
    950: '#000000',
  },
}
SCSS
$custom: #ba36b7;
$custom-light: #d27acd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36b7",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 183
  },
  "hsl": {
    "h": 301.364,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5772,
    "c": 0.21856,
    "h": 328.9
  },
  "luminance": 0.16496
}

Semantic roles & 50–950 ramp

primary
#BA36B7
secondary
#84C885
accent
#DE4D49
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA36B7

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

Preview Lab → · Contrast checker → · Palette generator →

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