#BA27A2#BA27A2

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

Color values

HEX#BA27A2
RGBrgb(186, 39, 162)
HSLhsl(310, 65%, 44%)
HSVhsv(310, 79%, 73%)
CMYKcmyk(0%, 79%, 12.9%, 27.1%)
CIE-LABlab(44.94, 68.00, -32.61)
CIE-LCHlch(44.94, 75.42, 334.38°)
OKLaboklab(55.45% 0.1996 -0.0891)
OKLCHoklch(55.45% 0.219 336)
XYZxyz(27.4973, 14.5014, 35.5263)
Luminance0.1450 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA27A2 #27BA3F
analogous
#8927BA #BA27A2 #BA2759
triadic
#BA27A2 #A2BA27 #27A2BA
tetradic
#BA27A2 #BA8927 #27BA3F #2759BA
square
#BA27A2 #BA8927 #27BA3F #2759BA
split-complementary
#BA27A2 #59BA27 #27BA89
monochromatic
#55124A #871C76 #BA27A2 #D846C0 #E379D1

Accessibility & contrast

On white

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

On black

3.90
#BA27A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA27A2#FFFFFF#000000##FFFFFF
##BA27A21.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295CA5
Deuteranopia (green-blind)
#5F729F
Tritanopia (blue-blind)
#C43364
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba27a2;
/* rgb */ color: rgb(186, 39, 162);
/* oklch */ color: oklch(55.4% 0.219 336.0);
Tailwind
colors: {
  custom: {
    50: '#d373be',
    500: '#ba27a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba27a2;
$custom-light: #d373be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba27a2",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 309.796,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55447,
    "c": 0.21857,
    "h": 336
  },
  "luminance": 0.14499
}

Semantic roles & 50–950 ramp

primary
#BA27A2
secondary
#72CB81
accent
#E85B40
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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