#BA27A6#BA27A6

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

Color values

HEX#BA27A6
RGBrgb(186, 39, 166)
HSLhsl(308, 65%, 44%)
HSVhsv(308, 79%, 73%)
CMYKcmyk(0%, 79%, 10.8%, 27.1%)
CIE-LABlab(45.15, 68.57, -34.68)
CIE-LCHlch(45.15, 76.84, 333.17°)
OKLaboklab(55.66% 0.1998 -0.095)
OKLCHoklch(55.66% 0.221 334.6)
XYZxyz(27.8585, 14.6458, 37.4287)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA27A6 #27BA3B
analogous
#8527BA #BA27A6 #BA275D
triadic
#BA27A6 #A6BA27 #27A6BA
tetradic
#BA27A6 #BA8527 #27BA3B #275DBA
square
#BA27A6 #BA8527 #27BA3B #275DBA
split-complementary
#BA27A6 #5DBA27 #27BA85
monochromatic
#55124C #871C79 #BA27A6 #D846C4 #E379D4

Accessibility & contrast

On white

5.35
#BA27A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#BA27A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA27A6
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA27A6#FFFFFF#000000##FFFFFF
##BA27A61.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245DA9
Deuteranopia (green-blind)
#5E72A3
Tritanopia (blue-blind)
#C33666
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba27a6;
/* rgb */ color: rgb(186, 39, 166);
/* oklch */ color: oklch(55.7% 0.221 334.6);
Tailwind
colors: {
  custom: {
    50: '#d373c1',
    500: '#ba27a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba27a6;
$custom-light: #d373c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba27a6",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 308.163,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55657,
    "c": 0.22126,
    "h": 334.6
  },
  "luminance": 0.14643
}

Semantic roles & 50–950 ramp

primary
#BA27A6
secondary
#72CB7E
accent
#E85640
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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