#BA28AE#BA28AE

#BA28AE is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.2% C 0.226 H 331.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#BA28AE
RGBrgb(186, 40, 174)
HSLhsl(305, 65%, 44%)
HSVhsv(305, 78%, 73%)
CMYKcmyk(0%, 78.5%, 6.5%, 27.1%)
CIE-LABlab(45.65, 69.49, -38.62)
CIE-LCHlch(45.65, 79.50, 330.94°)
OKLaboklab(56.16% 0.1993 -0.1064)
OKLCHoklch(56.16% 0.226 331.9)
XYZxyz(28.6485, 15.0151, 41.4255)
Luminance0.1501 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28AE #28BA34
analogous
#7D28BA #BA28AE #BA2865
triadic
#BA28AE #AEBA28 #28AEBA
tetradic
#BA28AE #BA7D28 #28BA34 #2865BA
square
#BA28AE #BA7D28 #28BA34 #2865BA
split-complementary
#BA28AE #65BA28 #28BA7D
monochromatic
#551250 #881D7F #BA28AE #D848CC #E27ADA

Accessibility & contrast

On white

5.25
#BA28AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#BA28AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28AE
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28AE#FFFFFF#000000##FFFFFF
##BA28AE1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5FB1
Deuteranopia (green-blind)
#5A73AB
Tritanopia (blue-blind)
#C23B6B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba28ae;
/* rgb */ color: rgb(186, 40, 174);
/* oklch */ color: oklch(56.2% 0.226 331.9);
Tailwind
colors: {
  custom: {
    50: '#d374c6',
    500: '#ba28ae',
    950: '#000000',
  },
}
SCSS
$custom: #ba28ae;
$custom-light: #d374c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28ae",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 304.932,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56156,
    "c": 0.22591,
    "h": 331.9
  },
  "luminance": 0.15013
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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