#BA36D9#BA36D9

#BA36D9 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.8% C 0.246 H 319.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#BA36D9
RGBrgb(186, 54, 217)
HSLhsl(289, 68%, 53%)
HSVhsv(289, 75%, 85%)
CMYKcmyk(14.3%, 75.1%, 0%, 14.9%)
CIE-LABlab(49.60, 72.48, -57.28)
CIE-LCHlch(49.60, 92.38, 321.68°)
OKLaboklab(59.77% 0.1856 -0.1609)
OKLCHoklch(59.77% 0.246 319.1)
XYZxyz(34.0916, 18.0889, 67.3279)
Luminance0.1809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36D9 #55D936
analogous
#6836D9 #BA36D9 #D936A6
triadic
#BA36D9 #D9BA36 #36D9BA
tetradic
#BA36D9 #D96836 #55D936 #36A6D9
square
#BA36D9 #D96836 #55D936 #36A6D9
split-complementary
#BA36D9 #A6D936 #36D968
monochromatic
#6A187D #9521B0 #BA36D9 #CC69E3 #DD9DEC

Accessibility & contrast

On white

4.55
#BA36D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#BA36D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA36D9
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36D9#FFFFFF#000000##000000
##BA36D91.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#427AD5
Tritanopia (blue-blind)
#BA5886
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba36d9;
/* rgb */ color: rgb(186, 54, 217);
/* oklch */ color: oklch(59.8% 0.246 319.1);
Tailwind
colors: {
  custom: {
    50: '#d37be5',
    500: '#ba36d9',
    950: '#000000',
  },
}
SCSS
$custom: #ba36d9;
$custom-light: #d37be5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36d9",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 217
  },
  "hsl": {
    "h": 288.589,
    "s": 68.201,
    "l": 53.137
  },
  "oklch": {
    "l": 0.59769,
    "c": 0.2456,
    "h": 319.1
  },
  "luminance": 0.18087
}

Semantic roles & 50–950 ramp

primary
#BA36D9
secondary
#A0D992
accent
#EB3D5E
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150A16
muted
#837C84

Preview Lab

Preview with #BA36D9

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

Preview Lab → · Contrast checker → · Palette generator →

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