#BA36B2#BA36B2

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

Color values

HEX#BA36B2
RGBrgb(186, 54, 178)
HSLhsl(304, 55%, 47%)
HSVhsv(304, 71%, 73%)
CMYKcmyk(0%, 71%, 4.3%, 27.1%)
CIE-LABlab(47.36, 65.84, -38.28)
CIE-LCHlch(47.36, 76.16, 329.82°)
OKLaboklab(57.45% 0.1871 -0.1055)
OKLCHoklch(57.45% 0.215 330.6)
XYZxyz(29.6046, 16.2941, 43.6967)
Luminance0.1629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36B2 #36BA3E
analogous
#8036BA #BA36B2 #BA3670
triadic
#BA36B2 #B2BA36 #36B2BA
tetradic
#BA36B2 #BA8036 #36BA3E #3670BA
square
#BA36B2 #BA8036 #36BA3E #3670BA
split-complementary
#BA36B2 #70BA36 #36BA80
monochromatic
#5B1A57 #8B2885 #BA36B2 #D05DC9 #DE8DD9

Accessibility & contrast

On white

4.93
#BA36B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#BA36B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA36B2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36B2#FFFFFF#000000##FFFFFF
##BA36B21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2965B5
Deuteranopia (green-blind)
#5D77AF
Tritanopia (blue-blind)
#C14670
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba36b2;
/* rgb */ color: rgb(186, 54, 178);
/* oklch */ color: oklch(57.4% 0.215 330.6);
Tailwind
colors: {
  custom: {
    50: '#d279c9',
    500: '#ba36b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba36b2;
$custom-light: #d279c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36b2",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 303.636,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57445,
    "c": 0.21476,
    "h": 330.6
  },
  "luminance": 0.16292
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA36B2

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

Preview Lab → · Contrast checker → · Palette generator →

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