#BA27BA#BA27BA

#BA27BA is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.8% C 0.235 H 328.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA27BA
RGBrgb(186, 39, 186)
HSLhsl(300, 65%, 44%)
HSVhsv(300, 79%, 73%)
CMYKcmyk(0%, 79%, 0%, 27.1%)
CIE-LABlab(46.23, 71.59, -44.77)
CIE-LCHlch(46.23, 84.44, 327.98°)
OKLaboklab(56.78% 0.1999 -0.1242)
OKLCHoklch(56.78% 0.235 328.1)
XYZxyz(29.8378, 15.4376, 47.8531)
Luminance0.1543 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA27BA #27BA27
analogous
#7127BA #BA27BA #BA2771
triadic
#BA27BA #BABA27 #27BABA
tetradic
#BA27BA #BA7127 #27BA27 #2771BA
square
#BA27BA #BA7127 #27BA27 #2771BA
split-complementary
#BA27BA #71BA27 #27BA71
monochromatic
#551255 #871C87 #BA27BA #D846D8 #E379E3

Accessibility & contrast

On white

5.14
#BA27BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#BA27BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA27BA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA27BA#FFFFFF#000000##FFFFFF
##BA27BA1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#5374B7
Tritanopia (blue-blind)
#C04171
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba27ba;
/* rgb */ color: rgb(186, 39, 186);
/* oklch */ color: oklch(56.8% 0.235 328.1);
Tailwind
colors: {
  custom: {
    50: '#d374cf',
    500: '#ba27ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba27ba;
$custom-light: #d374cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba27ba",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56778,
    "c": 0.23535,
    "h": 328.1
  },
  "luminance": 0.15435
}

Semantic roles & 50–950 ramp

primary
#BA27BA
secondary
#72CB72
accent
#E84040
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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