#BA28AB#BA28AB

#BA28AB is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.0% C 0.224 H 332.9°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#BA28AB
RGBrgb(186, 40, 171)
HSLhsl(306, 65%, 44%)
HSVhsv(306, 78%, 73%)
CMYKcmyk(0%, 78.5%, 8.1%, 27.1%)
CIE-LABlab(45.50, 69.04, -37.10)
CIE-LCHlch(45.50, 78.38, 331.75°)
OKLaboklab(55.99% 0.1992 -0.102)
OKLCHoklch(55.99% 0.224 332.9)
XYZxyz(28.3594, 14.8994, 39.9025)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28AB #28BA37
analogous
#8028BA #BA28AB #BA2862
triadic
#BA28AB #ABBA28 #28ABBA
tetradic
#BA28AB #BA8028 #28BA37 #2862BA
square
#BA28AB #BA8028 #28BA37 #2862BA
split-complementary
#BA28AB #62BA28 #28BA80
monochromatic
#55124E #881D7D #BA28AB #D848C9 #E27AD8

Accessibility & contrast

On white

5.28
#BA28AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#BA28AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28AB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28AB#FFFFFF#000000##FFFFFF
##BA28AB1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5FAE
Deuteranopia (green-blind)
#5B73A8
Tritanopia (blue-blind)
#C23969
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba28ab;
/* rgb */ color: rgb(186, 40, 171);
/* oklch */ color: oklch(56.0% 0.224 332.9);
Tailwind
colors: {
  custom: {
    50: '#d374c4',
    500: '#ba28ab',
    950: '#000000',
  },
}
SCSS
$custom: #ba28ab;
$custom-light: #d374c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28ab",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 306.164,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55991,
    "c": 0.22382,
    "h": 332.9
  },
  "luminance": 0.14897
}

Semantic roles & 50–950 ramp

primary
#BA28AB
secondary
#73CA7C
accent
#E85140
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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