#BA27A5#BA27A5

#BA27A5 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.6% C 0.221 H 334.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#BA27A5
RGBrgb(186, 39, 165)
HSLhsl(309, 65%, 44%)
HSVhsv(309, 79%, 73%)
CMYKcmyk(0%, 79%, 11.3%, 27.1%)
CIE-LABlab(45.09, 68.43, -34.16)
CIE-LCHlch(45.09, 76.48, 333.47°)
OKLaboklab(55.6% 0.1998 -0.0935)
OKLCHoklch(55.6% 0.221 334.9)
XYZxyz(27.7671, 14.6093, 36.9475)
Luminance0.1461 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA27A5 #27BA3C
analogous
#8527BA #BA27A5 #BA275C
triadic
#BA27A5 #A5BA27 #27A5BA
tetradic
#BA27A5 #BA8527 #27BA3C #275CBA
square
#BA27A5 #BA8527 #27BA3C #275CBA
split-complementary
#BA27A5 #5CBA27 #27BA85
monochromatic
#55124B #871C78 #BA27A5 #D846C3 #E379D4

Accessibility & contrast

On white

5.36
#BA27A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#BA27A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA27A5
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA27A5#FFFFFF#000000##FFFFFF
##BA27A51.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265DA8
Deuteranopia (green-blind)
#5E72A2
Tritanopia (blue-blind)
#C33565
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba27a5;
/* rgb */ color: rgb(186, 39, 165);
/* oklch */ color: oklch(55.6% 0.221 334.9);
Tailwind
colors: {
  custom: {
    50: '#d373c0',
    500: '#ba27a5',
    950: '#000000',
  },
}
SCSS
$custom: #ba27a5;
$custom-light: #d373c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba27a5",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 308.571,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55604,
    "c": 0.22059,
    "h": 334.9
  },
  "luminance": 0.14607
}

Semantic roles & 50–950 ramp

primary
#BA27A5
secondary
#72CB7F
accent
#E85840
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA27A5

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

Preview Lab → · Contrast checker → · Palette generator →

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