#BA27A7#BA27A7

#BA27A7 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.7% C 0.222 H 334.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#BA27A7
RGBrgb(186, 39, 167)
HSLhsl(308, 65%, 44%)
HSVhsv(308, 79%, 73%)
CMYKcmyk(0%, 79%, 10.2%, 27.1%)
CIE-LABlab(45.20, 68.72, -35.19)
CIE-LCHlch(45.20, 77.21, 332.88°)
OKLaboklab(55.71% 0.1999 -0.0965)
OKLCHoklch(55.71% 0.222 334.2)
XYZxyz(27.9506, 14.6827, 37.9137)
Luminance0.1468 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA27A7 #27BA3A
analogous
#8427BA #BA27A7 #BA275E
triadic
#BA27A7 #A7BA27 #27A7BA
tetradic
#BA27A7 #BA8427 #27BA3A #275EBA
square
#BA27A7 #BA8427 #27BA3A #275EBA
split-complementary
#BA27A7 #5EBA27 #27BA84
monochromatic
#55124C #871C7A #BA27A7 #D846C5 #E379D5

Accessibility & contrast

On white

5.34
#BA27A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#BA27A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA27A7
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA27A7#FFFFFF#000000##FFFFFF
##BA27A71.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235DAA
Deuteranopia (green-blind)
#5D72A4
Tritanopia (blue-blind)
#C33666
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba27a7;
/* rgb */ color: rgb(186, 39, 167);
/* oklch */ color: oklch(55.7% 0.222 334.2);
Tailwind
colors: {
  custom: {
    50: '#d373c1',
    500: '#ba27a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba27a7;
$custom-light: #d373c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba27a7",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 307.755,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5571,
    "c": 0.22195,
    "h": 334.2
  },
  "luminance": 0.1468
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA27A7

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

Preview Lab → · Contrast checker → · Palette generator →

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