#BA28A5#BA28A5

#BA28A5 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.7% C 0.220 H 334.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#BA28A5
RGBrgb(186, 40, 165)
HSLhsl(309, 65%, 44%)
HSVhsv(309, 78%, 73%)
CMYKcmyk(0%, 78.5%, 11.3%, 27.1%)
CIE-LABlab(45.19, 68.16, -34.02)
CIE-LCHlch(45.19, 76.18, 333.48°)
OKLaboklab(55.67% 0.199 -0.0931)
OKLCHoklch(55.67% 0.22 334.9)
XYZxyz(27.8004, 14.6758, 36.9586)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28A5 #28BA3D
analogous
#8628BA #BA28A5 #BA285C
triadic
#BA28A5 #A5BA28 #28A5BA
tetradic
#BA28A5 #BA8628 #28BA3D #285CBA
square
#BA28A5 #BA8628 #28BA3D #285CBA
split-complementary
#BA28A5 #5CBA28 #28BA86
monochromatic
#55124C #881D78 #BA28A5 #D848C3 #E27AD3

Accessibility & contrast

On white

5.34
#BA28A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA28A5
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28A5#FFFFFF#000000##FFFFFF
##BA28A51.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275DA8
Deuteranopia (green-blind)
#5E72A2
Tritanopia (blue-blind)
#C33665
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba28a5;
/* rgb */ color: rgb(186, 40, 165);
/* oklch */ color: oklch(55.7% 0.220 334.9);
Tailwind
colors: {
  custom: {
    50: '#d373c0',
    500: '#ba28a5',
    950: '#000000',
  },
}
SCSS
$custom: #ba28a5;
$custom-light: #d373c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28a5",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 308.63,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5567,
    "c": 0.2197,
    "h": 334.9
  },
  "luminance": 0.14673
}

Semantic roles & 50–950 ramp

primary
#BA28A5
secondary
#73CA80
accent
#E85840
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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