#BA36B3#BA36B3

#BA36B3 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.5% C 0.216 H 330.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#BA36B3
RGBrgb(186, 54, 179)
HSLhsl(303, 55%, 47%)
HSVhsv(303, 71%, 73%)
CMYKcmyk(0%, 71%, 3.8%, 27.1%)
CIE-LABlab(47.41, 65.99, -38.79)
CIE-LCHlch(47.41, 76.55, 329.55°)
OKLaboklab(57.5% 0.1871 -0.107)
OKLCHoklch(57.5% 0.216 330.2)
XYZxyz(29.7054, 16.3344, 44.2274)
Luminance0.1633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36B3 #36BA3D
analogous
#7F36BA #BA36B3 #BA3671
triadic
#BA36B3 #B3BA36 #36B3BA
tetradic
#BA36B3 #BA7F36 #36BA3D #3671BA
square
#BA36B3 #BA7F36 #36BA3D #3671BA
split-complementary
#BA36B3 #71BA36 #36BA7F
monochromatic
#5B1A58 #8B2885 #BA36B3 #D05DCA #DE8DD9

Accessibility & contrast

On white

4.92
#BA36B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#BA36B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA36B3
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36B3#FFFFFF#000000##FFFFFF
##BA36B31.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2865B6
Deuteranopia (green-blind)
#5D77B0
Tritanopia (blue-blind)
#C14771
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba36b3;
/* rgb */ color: rgb(186, 54, 179);
/* oklch */ color: oklch(57.5% 0.216 330.2);
Tailwind
colors: {
  custom: {
    50: '#d279ca',
    500: '#ba36b3',
    950: '#000000',
  },
}
SCSS
$custom: #ba36b3;
$custom-light: #d279ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36b3",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 179
  },
  "hsl": {
    "h": 303.182,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57499,
    "c": 0.21552,
    "h": 330.2
  },
  "luminance": 0.16332
}

Semantic roles & 50–950 ramp

primary
#BA36B3
secondary
#84C887
accent
#DE5149
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA36B3

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

Preview Lab → · Contrast checker → · Palette generator →

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