#BA27A3#BA27A3

#BA27A3 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.5% C 0.219 H 335.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#BA27A3
RGBrgb(186, 39, 163)
HSLhsl(309, 65%, 44%)
HSVhsv(309, 79%, 73%)
CMYKcmyk(0%, 79%, 12.4%, 27.1%)
CIE-LABlab(44.99, 68.14, -33.13)
CIE-LCHlch(44.99, 75.77, 334.07°)
OKLaboklab(55.5% 0.1997 -0.0905)
OKLCHoklch(55.5% 0.219 335.6)
XYZxyz(27.5865, 14.5371, 35.9963)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA27A3 #27BA3E
analogous
#8827BA #BA27A3 #BA275A
triadic
#BA27A3 #A3BA27 #27A3BA
tetradic
#BA27A3 #BA8827 #27BA3E #275ABA
square
#BA27A3 #BA8827 #27BA3E #275ABA
split-complementary
#BA27A3 #5ABA27 #27BA88
monochromatic
#55124A #871C77 #BA27A3 #D846C1 #E379D2

Accessibility & contrast

On white

5.38
#BA27A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#BA27A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA27A3
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA27A3#FFFFFF#000000##FFFFFF
##BA27A31.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285DA6
Deuteranopia (green-blind)
#5F72A0
Tritanopia (blue-blind)
#C43464
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba27a3;
/* rgb */ color: rgb(186, 39, 163);
/* oklch */ color: oklch(55.5% 0.219 335.6);
Tailwind
colors: {
  custom: {
    50: '#d373be',
    500: '#ba27a3',
    950: '#000000',
  },
}
SCSS
$custom: #ba27a3;
$custom-light: #d373be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba27a3",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 309.388,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55499,
    "c": 0.21924,
    "h": 335.6
  },
  "luminance": 0.14534
}

Semantic roles & 50–950 ramp

primary
#BA27A3
secondary
#72CB80
accent
#E85A40
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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