#BA27A8#BA27A8

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

Color values

HEX#BA27A8
RGBrgb(186, 39, 168)
HSLhsl(307, 65%, 44%)
HSVhsv(307, 79%, 73%)
CMYKcmyk(0%, 79%, 9.7%, 27.1%)
CIE-LABlab(45.25, 68.86, -35.71)
CIE-LCHlch(45.25, 77.57, 332.59°)
OKLaboklab(55.76% 0.1999 -0.098)
OKLCHoklch(55.76% 0.223 333.9)
XYZxyz(28.0434, 14.7198, 38.4025)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA27A8 #27BA39
analogous
#8327BA #BA27A8 #BA275F
triadic
#BA27A8 #A8BA27 #27A8BA
tetradic
#BA27A8 #BA8327 #27BA39 #275FBA
square
#BA27A8 #BA8327 #27BA39 #275FBA
split-complementary
#BA27A8 #5FBA27 #27BA83
monochromatic
#55124D #871C7A #BA27A8 #D846C6 #E379D6

Accessibility & contrast

On white

5.33
#BA27A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA27A8
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA27A8#FFFFFF#000000##FFFFFF
##BA27A81.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225EAB
Deuteranopia (green-blind)
#5D72A5
Tritanopia (blue-blind)
#C33767
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba27a8;
/* rgb */ color: rgb(186, 39, 168);
/* oklch */ color: oklch(55.8% 0.223 333.9);
Tailwind
colors: {
  custom: {
    50: '#d373c2',
    500: '#ba27a8',
    950: '#000000',
  },
}
SCSS
$custom: #ba27a8;
$custom-light: #d373c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba27a8",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 307.347,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55763,
    "c": 0.22263,
    "h": 333.9
  },
  "luminance": 0.14717
}

Semantic roles & 50–950 ramp

primary
#BA27A8
secondary
#72CB7D
accent
#E85440
background
#FDF7FC
surface
#FBEDF8
border
#D4C8D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BA27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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