#BA28B2#BA28B2

#BA28B2 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.4% C 0.229 H 330.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA28B2
RGBrgb(186, 40, 178)
HSLhsl(303, 65%, 44%)
HSVhsv(303, 78%, 73%)
CMYKcmyk(0%, 78.5%, 4.3%, 27.1%)
CIE-LABlab(45.87, 70.09, -40.64)
CIE-LCHlch(45.87, 81.02, 329.90°)
OKLaboklab(56.38% 0.1993 -0.1122)
OKLCHoklch(56.38% 0.229 330.6)
XYZxyz(29.0443, 15.1734, 43.5099)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28B2 #28BA30
analogous
#7928BA #BA28B2 #BA2869
triadic
#BA28B2 #B2BA28 #28B2BA
tetradic
#BA28B2 #BA7928 #28BA30 #2869BA
square
#BA28B2 #BA7928 #28BA30 #2869BA
split-complementary
#BA28B2 #69BA28 #28BA79
monochromatic
#551252 #881D82 #BA28B2 #D848D0 #E27ADD

Accessibility & contrast

On white

5.21
#BA28B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#BA28B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28B2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28B2#FFFFFF#000000##FFFFFF
##BA28B21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1260B6
Deuteranopia (green-blind)
#5873AF
Tritanopia (blue-blind)
#C13D6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba28b2;
/* rgb */ color: rgb(186, 40, 178);
/* oklch */ color: oklch(56.4% 0.229 330.6);
Tailwind
colors: {
  custom: {
    50: '#d374c9',
    500: '#ba28b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba28b2;
$custom-light: #d374c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28b2",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 303.288,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5638,
    "c": 0.22875,
    "h": 330.6
  },
  "luminance": 0.15171
}

Semantic roles & 50–950 ramp

primary
#BA28B2
secondary
#73CA78
accent
#E84940
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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