#BA28AF#BA28AF

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

Color values

HEX#BA28AF
RGBrgb(186, 40, 175)
HSLhsl(305, 65%, 44%)
HSVhsv(305, 78%, 73%)
CMYKcmyk(0%, 78.5%, 5.9%, 27.1%)
CIE-LABlab(45.71, 69.64, -39.13)
CIE-LCHlch(45.71, 79.88, 330.67°)
OKLaboklab(56.21% 0.1993 -0.1078)
OKLCHoklch(56.21% 0.227 331.6)
XYZxyz(28.7464, 15.0542, 41.9409)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28AF #28BA33
analogous
#7C28BA #BA28AF #BA2866
triadic
#BA28AF #AFBA28 #28AFBA
tetradic
#BA28AF #BA7C28 #28BA33 #2866BA
square
#BA28AF #BA7C28 #28BA33 #2866BA
split-complementary
#BA28AF #66BA28 #28BA7C
monochromatic
#551250 #881D80 #BA28AF #D848CD #E27ADB

Accessibility & contrast

On white

5.24
#BA28AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#BA28AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28AF
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28AF#FFFFFF#000000##FFFFFF
##BA28AF1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185FB3
Deuteranopia (green-blind)
#5973AC
Tritanopia (blue-blind)
#C23C6B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba28af;
/* rgb */ color: rgb(186, 40, 175);
/* oklch */ color: oklch(56.2% 0.227 331.6);
Tailwind
colors: {
  custom: {
    50: '#d374c7',
    500: '#ba28af',
    950: '#000000',
  },
}
SCSS
$custom: #ba28af;
$custom-light: #d374c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28af",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 304.521,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56212,
    "c": 0.22663,
    "h": 331.6
  },
  "luminance": 0.15052
}

Semantic roles & 50–950 ramp

primary
#BA28AF
secondary
#73CA7A
accent
#E84D40
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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