#BA27B9#BA27B9

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

Color values

HEX#BA27B9
RGBrgb(186, 39, 185)
HSLhsl(300, 65%, 44%)
HSVhsv(300, 79%, 73%)
CMYKcmyk(0%, 79%, 0.5%, 27.1%)
CIE-LABlab(46.17, 71.44, -44.28)
CIE-LCHlch(46.17, 84.05, 328.21°)
OKLaboklab(56.72% 0.1999 -0.1228)
OKLCHoklch(56.72% 0.235 328.4)
XYZxyz(29.7319, 15.3952, 47.2952)
Luminance0.1539 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA27B9 #27BA28
analogous
#7227BA #BA27B9 #BA2770
triadic
#BA27B9 #B9BA27 #27B9BA
tetradic
#BA27B9 #BA7227 #27BA28 #2770BA
square
#BA27B9 #BA7227 #27BA28 #2770BA
split-complementary
#BA27B9 #70BA27 #27BA72
monochromatic
#551254 #871C87 #BA27B9 #D846D7 #E379E2

Accessibility & contrast

On white

5.15
#BA27B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#BA27B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA27B9
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA27B9#FFFFFF#000000##FFFFFF
##BA27B91.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BD
Deuteranopia (green-blind)
#5374B6
Tritanopia (blue-blind)
#C04071
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba27b9;
/* rgb */ color: rgb(186, 39, 185);
/* oklch */ color: oklch(56.7% 0.235 328.4);
Tailwind
colors: {
  custom: {
    50: '#d374ce',
    500: '#ba27b9',
    950: '#000000',
  },
}
SCSS
$custom: #ba27b9;
$custom-light: #d374ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba27b9",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 185
  },
  "hsl": {
    "h": 300.408,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56719,
    "c": 0.23463,
    "h": 328.4
  },
  "luminance": 0.15393
}

Semantic roles & 50–950 ramp

primary
#BA27B9
secondary
#72CB73
accent
#E84140
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA27B9

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

Preview Lab → · Contrast checker → · Palette generator →

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