#BA28B8#BA28B8

#BA28B8 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.7% C 0.233 H 328.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA28B8
RGBrgb(186, 40, 184)
HSLhsl(301, 65%, 44%)
HSVhsv(301, 78%, 73%)
CMYKcmyk(0%, 78.5%, 1.1%, 27.1%)
CIE-LABlab(46.20, 71.02, -43.64)
CIE-LCHlch(46.20, 83.36, 328.43°)
OKLaboklab(56.72% 0.1992 -0.1209)
OKLCHoklch(56.72% 0.233 328.7)
XYZxyz(29.6599, 15.4197, 46.7522)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28B8 #28BA2A
analogous
#7328BA #BA28B8 #BA286F
triadic
#BA28B8 #B8BA28 #28B8BA
tetradic
#BA28B8 #BA7328 #28BA2A #286FBA
square
#BA28B8 #BA7328 #28BA2A #286FBA
split-complementary
#BA28B8 #6FBA28 #28BA73
monochromatic
#551254 #881D86 #BA28B8 #D848D6 #E27AE1

Accessibility & contrast

On white

5.14
#BA28B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#BA28B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28B8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28B8#FFFFFF#000000##FFFFFF
##BA28B81.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#5474B5
Tritanopia (blue-blind)
#C04070
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba28b8;
/* rgb */ color: rgb(186, 40, 184);
/* oklch */ color: oklch(56.7% 0.233 328.7);
Tailwind
colors: {
  custom: {
    50: '#d374ce',
    500: '#ba28b8',
    950: '#000000',
  },
}
SCSS
$custom: #ba28b8;
$custom-light: #d374ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28b8",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 184
  },
  "hsl": {
    "h": 300.822,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56724,
    "c": 0.23306,
    "h": 328.7
  },
  "luminance": 0.15417
}

Semantic roles & 50–950 ramp

primary
#BA28B8
secondary
#73CA75
accent
#E84340
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BA28B8

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

Preview Lab → · Contrast checker → · Palette generator →

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