#BA28AD#BA28AD

#BA28AD is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.225 H 332.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA28AD
RGBrgb(186, 40, 173)
HSLhsl(305, 65%, 44%)
HSVhsv(305, 78%, 73%)
CMYKcmyk(0%, 78.5%, 7%, 27.1%)
CIE-LABlab(45.60, 69.34, -38.11)
CIE-LCHlch(45.60, 79.12, 331.20°)
OKLaboklab(56.1% 0.1993 -0.1049)
OKLCHoklch(56.1% 0.225 332.2)
XYZxyz(28.5514, 14.9763, 40.9140)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28AD #28BA35
analogous
#7E28BA #BA28AD #BA2864
triadic
#BA28AD #ADBA28 #28ADBA
tetradic
#BA28AD #BA7E28 #28BA35 #2864BA
square
#BA28AD #BA7E28 #28BA35 #2864BA
split-complementary
#BA28AD #64BA28 #28BA7E
monochromatic
#55124F #881D7E #BA28AD #D848CB #E27AD9

Accessibility & contrast

On white

5.26
#BA28AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#BA28AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28AD
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28AD#FFFFFF#000000##FFFFFF
##BA28AD1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5FB0
Deuteranopia (green-blind)
#5A73AA
Tritanopia (blue-blind)
#C23A6A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba28ad;
/* rgb */ color: rgb(186, 40, 173);
/* oklch */ color: oklch(56.1% 0.225 332.2);
Tailwind
colors: {
  custom: {
    50: '#d374c6',
    500: '#ba28ad',
    950: '#000000',
  },
}
SCSS
$custom: #ba28ad;
$custom-light: #d374c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28ad",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 305.342,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56101,
    "c": 0.22522,
    "h": 332.2
  },
  "luminance": 0.14974
}

Semantic roles & 50–950 ramp

primary
#BA28AD
secondary
#73CA7B
accent
#E84F40
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA28AD

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

Preview Lab → · Contrast checker → · Palette generator →

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