#BA27A0#BA27A0

#BA27A0 is a mid, highly saturated pink. Relative luminance 0.144; OKLCH L 55.3% C 0.217 H 336.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#BA27A0
RGBrgb(186, 39, 160)
HSLhsl(311, 65%, 44%)
HSVhsv(311, 79%, 73%)
CMYKcmyk(0%, 79%, 14%, 27.1%)
CIE-LABlab(44.84, 67.72, -31.57)
CIE-LCHlch(44.84, 74.72, 335.00°)
OKLaboklab(55.34% 0.1995 -0.0861)
OKLCHoklch(55.34% 0.217 336.7)
XYZxyz(27.3209, 14.4308, 34.5974)
Luminance0.1443 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA27A0 #27BA41
analogous
#8B27BA #BA27A0 #BA2757
triadic
#BA27A0 #A0BA27 #27A0BA
tetradic
#BA27A0 #BA8B27 #27BA41 #2757BA
square
#BA27A0 #BA8B27 #27BA41 #2757BA
split-complementary
#BA27A0 #57BA27 #27BA8B
monochromatic
#551249 #871C74 #BA27A0 #D846BE #E379D0

Accessibility & contrast

On white

5.40
#BA27A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#BA27A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA27A0
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA27A0#FFFFFF#000000##FFFFFF
##BA27A01.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5CA3
Deuteranopia (green-blind)
#60729D
Tritanopia (blue-blind)
#C43262
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba27a0;
/* rgb */ color: rgb(186, 39, 160);
/* oklch */ color: oklch(55.3% 0.217 336.7);
Tailwind
colors: {
  custom: {
    50: '#d373bc',
    500: '#ba27a0',
    950: '#000000',
  },
}
SCSS
$custom: #ba27a0;
$custom-light: #d373bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba27a0",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 310.612,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55343,
    "c": 0.21724,
    "h": 336.7
  },
  "luminance": 0.14428
}

Semantic roles & 50–950 ramp

primary
#BA27A0
secondary
#72CB82
accent
#E85D40
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA27A0

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

Preview Lab → · Contrast checker → · Palette generator →

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