#BA28A4#BA28A4

#BA28A4 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.6% C 0.219 H 335.3°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#BA28A4
RGBrgb(186, 40, 164)
HSLhsl(309, 65%, 44%)
HSVhsv(309, 78%, 73%)
CMYKcmyk(0%, 78.5%, 11.8%, 27.1%)
CIE-LABlab(45.14, 68.02, -33.50)
CIE-LCHlch(45.14, 75.82, 333.78°)
OKLaboklab(55.62% 0.1989 -0.0916)
OKLCHoklch(55.62% 0.219 335.3)
XYZxyz(27.7097, 14.6396, 36.4811)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28A4 #28BA3E
analogous
#8728BA #BA28A4 #BA285B
triadic
#BA28A4 #A4BA28 #28A4BA
tetradic
#BA28A4 #BA8728 #28BA3E #285BBA
square
#BA28A4 #BA8728 #28BA3E #285BBA
split-complementary
#BA28A4 #5BBA28 #28BA87
monochromatic
#55124B #881D78 #BA28A4 #D848C2 #E27AD3

Accessibility & contrast

On white

5.35
#BA28A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#BA28A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28A4
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28A4#FFFFFF#000000##FFFFFF
##BA28A41.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285DA7
Deuteranopia (green-blind)
#5F72A1
Tritanopia (blue-blind)
#C33565
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba28a4;
/* rgb */ color: rgb(186, 40, 164);
/* oklch */ color: oklch(55.6% 0.219 335.3);
Tailwind
colors: {
  custom: {
    50: '#d373bf',
    500: '#ba28a4',
    950: '#000000',
  },
}
SCSS
$custom: #ba28a4;
$custom-light: #d373bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28a4",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 309.041,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55617,
    "c": 0.21901,
    "h": 335.3
  },
  "luminance": 0.14637
}

Semantic roles & 50–950 ramp

primary
#BA28A4
secondary
#73CA81
accent
#E85940
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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