#BA24C4#BA24C4

#BA24C4 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 57.2% C 0.245 H 325.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BA24C4
RGBrgb(186, 36, 196)
HSLhsl(296, 69%, 45%)
HSVhsv(296, 82%, 77%)
CMYKcmyk(5.1%, 81.6%, 0%, 23.1%)
CIE-LABlab(46.56, 73.93, -50.07)
CIE-LCHlch(46.56, 89.28, 325.89°)
OKLaboklab(57.2% 0.2013 -0.1397)
OKLCHoklch(57.2% 0.245 325.2)
XYZxyz(30.8437, 15.6885, 53.6175)
Luminance0.1569 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA24C4 #2EC424
analogous
#6A24C4 #BA24C4 #C4247E
triadic
#BA24C4 #C4BA24 #24C4BA
tetradic
#BA24C4 #C46A24 #2EC424 #247EC4
square
#BA24C4 #C46A24 #2EC424 #247EC4
split-complementary
#BA24C4 #7EC424 #24C46A
monochromatic
#58115D #891B90 #BA24C4 #D448DD #E07CE7

Accessibility & contrast

On white

5.08
#BA24C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#BA24C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA24C4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA24C4#FFFFFF#000000##FFFFFF
##BA24C41.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#4B74C0
Tritanopia (blue-blind)
#BE4576
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba24c4;
/* rgb */ color: rgb(186, 36, 196);
/* oklch */ color: oklch(57.2% 0.245 325.2);
Tailwind
colors: {
  custom: {
    50: '#d373d6',
    500: '#ba24c4',
    950: '#000000',
  },
}
SCSS
$custom: #ba24c4;
$custom-light: #d373d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba24c4",
  "rgb": {
    "r": 186,
    "g": 36,
    "b": 196
  },
  "hsl": {
    "h": 296.25,
    "s": 68.966,
    "l": 45.49
  },
  "oklch": {
    "l": 0.57204,
    "c": 0.245,
    "h": 325.2
  },
  "luminance": 0.15686
}

Semantic roles & 50–950 ramp

primary
#BA24C4
secondary
#7BCF75
accent
#EC3C47
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150914
muted
#837B83

Preview Lab

Preview with #BA24C4

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

Preview Lab → · Contrast checker → · Palette generator →

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