#BA24BA#BA24BA

#BA24BA is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.6% C 0.238 H 328.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#BA24BA
RGBrgb(186, 36, 186)
HSLhsl(300, 68%, 44%)
HSVhsv(300, 81%, 73%)
CMYKcmyk(0%, 80.6%, 0%, 27.1%)
CIE-LABlab(45.97, 72.34, -45.18)
CIE-LCHlch(45.97, 85.28, 328.01°)
OKLaboklab(56.6% 0.202 -0.1254)
OKLCHoklch(56.6% 0.238 328.2)
XYZxyz(29.7432, 15.2483, 47.8215)
Luminance0.1525 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA24BA #24BA24
analogous
#6F24BA #BA24BA #BA246F
triadic
#BA24BA #BABA24 #24BABA
tetradic
#BA24BA #BA6F24 #24BA24 #246FBA
square
#BA24BA #BA6F24 #24BA24 #246FBA
split-complementary
#BA24BA #6FBA24 #24BA6F
monochromatic
#531053 #871A87 #BA24BA #DA41DA #E474E4

Accessibility & contrast

On white

5.19
#BA24BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#BA24BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA24BA
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA24BA#FFFFFF#000000##FFFFFF
##BA24BA1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#5273B7
Tritanopia (blue-blind)
#C03F71
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba24ba;
/* rgb */ color: rgb(186, 36, 186);
/* oklch */ color: oklch(56.6% 0.238 328.2);
Tailwind
colors: {
  custom: {
    50: '#d373cf',
    500: '#ba24ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba24ba;
$custom-light: #d373cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba24ba",
  "rgb": {
    "r": 186,
    "g": 36,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 67.568,
    "l": 43.529
  },
  "oklch": {
    "l": 0.56597,
    "c": 0.23774,
    "h": 328.2
  },
  "luminance": 0.15246
}

Semantic roles & 50–950 ramp

primary
#BA24BA
secondary
#6ECB6E
accent
#EA3D3D
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA24BA

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

Preview Lab → · Contrast checker → · Palette generator →

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