#BA28A3#BA28A3

#BA28A3 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.6% C 0.218 H 335.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#BA28A3
RGBrgb(186, 40, 163)
HSLhsl(309, 65%, 44%)
HSVhsv(309, 78%, 73%)
CMYKcmyk(0%, 78.5%, 12.4%, 27.1%)
CIE-LABlab(45.09, 67.88, -32.98)
CIE-LCHlch(45.09, 75.47, 334.08°)
OKLaboklab(55.57% 0.1989 -0.0901)
OKLCHoklch(55.57% 0.218 335.6)
XYZxyz(27.6198, 14.6036, 36.0074)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28A3 #28BA3F
analogous
#8828BA #BA28A3 #BA285A
triadic
#BA28A3 #A3BA28 #28A3BA
tetradic
#BA28A3 #BA8828 #28BA3F #285ABA
square
#BA28A3 #BA8828 #28BA3F #285ABA
split-complementary
#BA28A3 #5ABA28 #28BA88
monochromatic
#55124B #881D77 #BA28A3 #D848C1 #E27AD2

Accessibility & contrast

On white

5.36
#BA28A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#BA28A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28A3
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28A3#FFFFFF#000000##FFFFFF
##BA28A31.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295DA6
Deuteranopia (green-blind)
#5F72A0
Tritanopia (blue-blind)
#C43564
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba28a3;
/* rgb */ color: rgb(186, 40, 163);
/* oklch */ color: oklch(55.6% 0.218 335.6);
Tailwind
colors: {
  custom: {
    50: '#d373be',
    500: '#ba28a3',
    950: '#000000',
  },
}
SCSS
$custom: #ba28a3;
$custom-light: #d373be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28a3",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 309.452,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55565,
    "c": 0.21834,
    "h": 335.6
  },
  "luminance": 0.14601
}

Semantic roles & 50–950 ramp

primary
#BA28A3
secondary
#73CA81
accent
#E85B40
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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