#BA28AC#BA28AC

#BA28AC is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.0% C 0.225 H 332.6°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#BA28AC
RGBrgb(186, 40, 172)
HSLhsl(306, 65%, 44%)
HSVhsv(306, 78%, 73%)
CMYKcmyk(0%, 78.5%, 7.5%, 27.1%)
CIE-LABlab(45.55, 69.19, -37.60)
CIE-LCHlch(45.55, 78.75, 331.48°)
OKLaboklab(56.05% 0.1993 -0.1034)
OKLCHoklch(56.05% 0.225 332.6)
XYZxyz(28.4550, 14.9377, 40.4063)
Luminance0.1494 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28AC #28BA36
analogous
#7F28BA #BA28AC #BA2863
triadic
#BA28AC #ACBA28 #28ACBA
tetradic
#BA28AC #BA7F28 #28BA36 #2863BA
square
#BA28AC #BA7F28 #28BA36 #2863BA
split-complementary
#BA28AC #63BA28 #28BA7F
monochromatic
#55124F #881D7D #BA28AC #D848CA #E27AD8

Accessibility & contrast

On white

5.27
#BA28AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA28AC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28AC#FFFFFF#000000##FFFFFF
##BA28AC1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5FAF
Deuteranopia (green-blind)
#5B73A9
Tritanopia (blue-blind)
#C23A69
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba28ac;
/* rgb */ color: rgb(186, 40, 172);
/* oklch */ color: oklch(56.0% 0.225 332.6);
Tailwind
colors: {
  custom: {
    50: '#d374c5',
    500: '#ba28ac',
    950: '#000000',
  },
}
SCSS
$custom: #ba28ac;
$custom-light: #d374c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28ac",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 305.753,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56046,
    "c": 0.22452,
    "h": 332.6
  },
  "luminance": 0.14935
}

Semantic roles & 50–950 ramp

primary
#BA28AC
secondary
#73CA7C
accent
#E85040
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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