#BA28A8#BA28A8

#BA28A8 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.222 H 333.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#BA28A8
RGBrgb(186, 40, 168)
HSLhsl(307, 65%, 44%)
HSVhsv(307, 78%, 73%)
CMYKcmyk(0%, 78.5%, 9.7%, 27.1%)
CIE-LABlab(45.34, 68.60, -35.56)
CIE-LCHlch(45.34, 77.27, 332.60°)
OKLaboklab(55.83% 0.1991 -0.0975)
OKLCHoklch(55.83% 0.222 333.9)
XYZxyz(28.0766, 14.7863, 38.4135)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28A8 #28BA3A
analogous
#8328BA #BA28A8 #BA285F
triadic
#BA28A8 #A8BA28 #28A8BA
tetradic
#BA28A8 #BA8328 #28BA3A #285FBA
square
#BA28A8 #BA8328 #28BA3A #285FBA
split-complementary
#BA28A8 #5FBA28 #28BA83
monochromatic
#55124D #881D7B #BA28A8 #D848C6 #E27AD6

Accessibility & contrast

On white

5.31
#BA28A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#BA28A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28A8
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28A8#FFFFFF#000000##FFFFFF
##BA28A81.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235EAB
Deuteranopia (green-blind)
#5D73A5
Tritanopia (blue-blind)
#C33867
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba28a8;
/* rgb */ color: rgb(186, 40, 168);
/* oklch */ color: oklch(55.8% 0.222 333.9);
Tailwind
colors: {
  custom: {
    50: '#d373c2',
    500: '#ba28a8',
    950: '#000000',
  },
}
SCSS
$custom: #ba28a8;
$custom-light: #d373c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28a8",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 307.397,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55829,
    "c": 0.22175,
    "h": 333.9
  },
  "luminance": 0.14784
}

Semantic roles & 50–950 ramp

primary
#BA28A8
secondary
#73CA7E
accent
#E85540
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BA28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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