#BA27A9#BA27A9

#BA27A9 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.223 H 333.6°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA27A9
RGBrgb(186, 39, 169)
HSLhsl(307, 65%, 44%)
HSVhsv(307, 79%, 73%)
CMYKcmyk(0%, 79%, 9.1%, 27.1%)
CIE-LABlab(45.30, 69.01, -36.22)
CIE-LCHlch(45.30, 77.94, 332.31°)
OKLaboklab(55.82% 0.2 -0.0994)
OKLCHoklch(55.82% 0.223 333.6)
XYZxyz(28.1369, 14.7572, 38.8950)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA27A9 #27BA38
analogous
#8227BA #BA27A9 #BA2760
triadic
#BA27A9 #A9BA27 #27A9BA
tetradic
#BA27A9 #BA8227 #27BA38 #2760BA
square
#BA27A9 #BA8227 #27BA38 #2760BA
split-complementary
#BA27A9 #60BA27 #27BA82
monochromatic
#55124D #871C7B #BA27A9 #D846C7 #E379D7

Accessibility & contrast

On white

5.32
#BA27A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#BA27A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA27A9
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA27A9#FFFFFF#000000##FFFFFF
##BA27A91.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215EAC
Deuteranopia (green-blind)
#5C73A6
Tritanopia (blue-blind)
#C33867
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba27a9;
/* rgb */ color: rgb(186, 39, 169);
/* oklch */ color: oklch(55.8% 0.223 333.6);
Tailwind
colors: {
  custom: {
    50: '#d373c3',
    500: '#ba27a9',
    950: '#000000',
  },
}
SCSS
$custom: #ba27a9;
$custom-light: #d373c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba27a9",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 306.939,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55817,
    "c": 0.22332,
    "h": 333.6
  },
  "luminance": 0.14755
}

Semantic roles & 50–950 ramp

primary
#BA27A9
secondary
#72CB7C
accent
#E85340
background
#FDF7FC
surface
#FBEDF8
border
#D4C8D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BA27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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