#BA28C4#BA28C4

#BA28C4 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.4% C 0.242 H 325.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#BA28C4
RGBrgb(186, 40, 196)
HSLhsl(296, 66%, 46%)
HSVhsv(296, 80%, 77%)
CMYKcmyk(5.1%, 79.6%, 0%, 23.1%)
CIE-LABlab(46.90, 72.94, -49.53)
CIE-LCHlch(46.90, 88.17, 325.82°)
OKLaboklab(57.44% 0.1986 -0.1381)
OKLCHoklch(57.44% 0.242 325.2)
XYZxyz(30.9716, 15.9443, 53.6601)
Luminance0.1594 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA28C4 #32C428
analogous
#6C28C4 #BA28C4 #C42880
triadic
#BA28C4 #C4BA28 #28C4BA
tetradic
#BA28C4 #C46C28 #32C428 #2880C4
square
#BA28C4 #C46C28 #32C428 #2880C4
split-complementary
#BA28C4 #80C428 #28C46C
monochromatic
#5A135E #8A1E91 #BA28C4 #D24EDB #DF81E5

Accessibility & contrast

On white

5.01
#BA28C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#BA28C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA28C4
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA28C4#FFFFFF#000000##FFFFFF
##BA28C41.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#4C75C0
Tritanopia (blue-blind)
#BE4777
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba28c4;
/* rgb */ color: rgb(186, 40, 196);
/* oklch */ color: oklch(57.4% 0.242 325.2);
Tailwind
colors: {
  custom: {
    50: '#d375d6',
    500: '#ba28c4',
    950: '#000000',
  },
}
SCSS
$custom: #ba28c4;
$custom-light: #d375d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba28c4",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 296.154,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57443,
    "c": 0.24187,
    "h": 325.2
  },
  "luminance": 0.15942
}

Semantic roles & 50–950 ramp

primary
#BA28C4
secondary
#7FCE7A
accent
#E93F4A
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA28C4

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

Preview Lab → · Contrast checker → · Palette generator →

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