#BA36B1#BA36B1

#BA36B1 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.4% C 0.214 H 330.9°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#BA36B1
RGBrgb(186, 54, 177)
HSLhsl(304, 55%, 47%)
HSVhsv(304, 71%, 73%)
CMYKcmyk(0%, 71%, 4.8%, 27.1%)
CIE-LABlab(47.31, 65.68, -37.78)
CIE-LCHlch(47.31, 75.77, 330.09°)
OKLaboklab(57.39% 0.187 -0.104)
OKLCHoklch(57.39% 0.214 330.9)
XYZxyz(29.5046, 16.2541, 43.1698)
Luminance0.1625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36B1 #36BA3F
analogous
#8136BA #BA36B1 #BA366F
triadic
#BA36B1 #B1BA36 #36B1BA
tetradic
#BA36B1 #BA8136 #36BA3F #366FBA
square
#BA36B1 #BA8136 #36BA3F #366FBA
split-complementary
#BA36B1 #6FBA36 #36BA81
monochromatic
#5B1A57 #8B2884 #BA36B1 #D05DC8 #DE8DD8

Accessibility & contrast

On white

4.94
#BA36B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#BA36B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA36B1
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36B1#FFFFFF#000000##FFFFFF
##BA36B11.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A65B4
Deuteranopia (green-blind)
#5E77AE
Tritanopia (blue-blind)
#C14670
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba36b1;
/* rgb */ color: rgb(186, 54, 177);
/* oklch */ color: oklch(57.4% 0.214 330.9);
Tailwind
colors: {
  custom: {
    50: '#d279c9',
    500: '#ba36b1',
    950: '#000000',
  },
}
SCSS
$custom: #ba36b1;
$custom-light: #d279c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36b1",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 177
  },
  "hsl": {
    "h": 304.091,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57391,
    "c": 0.21402,
    "h": 330.9
  },
  "luminance": 0.16252
}

Semantic roles & 50–950 ramp

primary
#BA36B1
secondary
#84C888
accent
#DE5449
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA36B1

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

Preview Lab → · Contrast checker → · Palette generator →

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