#BA28A6#BA28A6

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

Color values

HEX#BA28A6
RGBrgb(186, 40, 166)
HSLhsl(308, 65%, 44%)
HSVhsv(308, 78%, 73%)
CMYKcmyk(0%, 78.5%, 10.8%, 27.1%)
CIE-LABlab(45.24, 68.31, -34.53)
CIE-LCHlch(45.24, 76.54, 333.18°)
OKLaboklab(55.72% 0.199 -0.0946)
OKLCHoklch(55.72% 0.22 334.6)
XYZxyz(27.8918, 14.7124, 37.4398)
Luminance0.1471 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28A6 #28BA3C
analogous
#8528BA #BA28A6 #BA285D
triadic
#BA28A6 #A6BA28 #28A6BA
tetradic
#BA28A6 #BA8528 #28BA3C #285DBA
square
#BA28A6 #BA8528 #28BA3C #285DBA
split-complementary
#BA28A6 #5DBA28 #28BA85
monochromatic
#55124C #881D79 #BA28A6 #D848C4 #E27AD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA28A6#FFFFFF#000000##FFFFFF
##BA28A61.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)
#265EA9
Deuteranopia (green-blind)
#5E73A3
Tritanopia (blue-blind)
#C33666
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba28a6;
/* rgb */ color: rgb(186, 40, 166);
/* oklch */ color: oklch(55.7% 0.220 334.6);
Tailwind
colors: {
  custom: {
    50: '#d373c1',
    500: '#ba28a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba28a6;
$custom-light: #d373c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28a6",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 308.219,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55723,
    "c": 0.22037,
    "h": 334.6
  },
  "luminance": 0.1471
}

Semantic roles & 50–950 ramp

primary
#BA28A6
secondary
#73CA7F
accent
#E85740
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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