#BA28BA#BA28BA

#BA28BA is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.8% C 0.235 H 328.1°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA28BA
RGBrgb(186, 40, 186)
HSLhsl(300, 65%, 44%)
HSVhsv(300, 78%, 73%)
CMYKcmyk(0%, 78.5%, 0%, 27.1%)
CIE-LABlab(46.32, 71.34, -44.63)
CIE-LCHlch(46.32, 84.15, 327.97°)
OKLaboklab(56.84% 0.1992 -0.1238)
OKLCHoklch(56.84% 0.235 328.1)
XYZxyz(29.8711, 15.5041, 47.8642)
Luminance0.1550 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28BA #28BA28
analogous
#7128BA #BA28BA #BA2871
triadic
#BA28BA #BABA28 #28BABA
tetradic
#BA28BA #BA7128 #28BA28 #2871BA
square
#BA28BA #BA7128 #28BA28 #2871BA
split-complementary
#BA28BA #71BA28 #28BA71
monochromatic
#551255 #881D88 #BA28BA #D848D8 #E27AE2

Accessibility & contrast

On white

5.12
#BA28BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA28BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28BA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28BA#FFFFFF#000000##FFFFFF
##BA28BA1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#5374B7
Tritanopia (blue-blind)
#C04271
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba28ba;
/* rgb */ color: rgb(186, 40, 186);
/* oklch */ color: oklch(56.8% 0.235 328.1);
Tailwind
colors: {
  custom: {
    50: '#d374cf',
    500: '#ba28ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba28ba;
$custom-light: #d374cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28ba",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56841,
    "c": 0.23451,
    "h": 328.1
  },
  "luminance": 0.15502
}

Semantic roles & 50–950 ramp

primary
#BA28BA
secondary
#73CA73
accent
#E84040
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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