#BA28B0#BA28B0

#BA28B0 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.3% C 0.227 H 331.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#BA28B0
RGBrgb(186, 40, 176)
HSLhsl(304, 65%, 44%)
HSVhsv(304, 78%, 73%)
CMYKcmyk(0%, 78.5%, 5.4%, 27.1%)
CIE-LABlab(45.76, 69.79, -39.63)
CIE-LCHlch(45.76, 80.26, 330.41°)
OKLaboklab(56.27% 0.1993 -0.1093)
OKLCHoklch(56.27% 0.227 331.3)
XYZxyz(28.8450, 15.0937, 42.4600)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28B0 #28BA32
analogous
#7B28BA #BA28B0 #BA2867
triadic
#BA28B0 #B0BA28 #28B0BA
tetradic
#BA28B0 #BA7B28 #28BA32 #2867BA
square
#BA28B0 #BA7B28 #28BA32 #2867BA
split-complementary
#BA28B0 #67BA28 #28BA7B
monochromatic
#551251 #881D80 #BA28B0 #D848CE #E27ADB

Accessibility & contrast

On white

5.23
#BA28B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BA28B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28B0
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28B0#FFFFFF#000000##FFFFFF
##BA28B01.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1660B4
Deuteranopia (green-blind)
#5973AD
Tritanopia (blue-blind)
#C23C6C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba28b0;
/* rgb */ color: rgb(186, 40, 176);
/* oklch */ color: oklch(56.3% 0.227 331.3);
Tailwind
colors: {
  custom: {
    50: '#d374c8',
    500: '#ba28b0',
    950: '#000000',
  },
}
SCSS
$custom: #ba28b0;
$custom-light: #d374c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28b0",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 304.11,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56267,
    "c": 0.22733,
    "h": 331.3
  },
  "luminance": 0.15091
}

Semantic roles & 50–950 ramp

primary
#BA28B0
secondary
#73CA79
accent
#E84C40
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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