#BA28A7#BA28A7

#BA28A7 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.8% C 0.221 H 334.2°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA28A7
RGBrgb(186, 40, 167)
HSLhsl(308, 65%, 44%)
HSVhsv(308, 78%, 73%)
CMYKcmyk(0%, 78.5%, 10.2%, 27.1%)
CIE-LABlab(45.29, 68.45, -35.05)
CIE-LCHlch(45.29, 76.90, 332.89°)
OKLaboklab(55.78% 0.1991 -0.0961)
OKLCHoklch(55.78% 0.221 334.2)
XYZxyz(27.9838, 14.7492, 37.9248)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28A7 #28BA3B
analogous
#8428BA #BA28A7 #BA285E
triadic
#BA28A7 #A7BA28 #28A7BA
tetradic
#BA28A7 #BA8428 #28BA3B #285EBA
square
#BA28A7 #BA8428 #28BA3B #285EBA
split-complementary
#BA28A7 #5EBA28 #28BA84
monochromatic
#55124D #881D7A #BA28A7 #D848C5 #E27AD5

Accessibility & contrast

On white

5.32
#BA28A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#BA28A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28A7
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28A7#FFFFFF#000000##FFFFFF
##BA28A71.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245EAA
Deuteranopia (green-blind)
#5D73A4
Tritanopia (blue-blind)
#C33767
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba28a7;
/* rgb */ color: rgb(186, 40, 167);
/* oklch */ color: oklch(55.8% 0.221 334.2);
Tailwind
colors: {
  custom: {
    50: '#d373c1',
    500: '#ba28a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba28a7;
$custom-light: #d373c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28a7",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 307.808,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55776,
    "c": 0.22106,
    "h": 334.2
  },
  "luminance": 0.14747
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA28A7

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

Preview Lab → · Contrast checker → · Palette generator →

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