#BA24A2#BA24A2

#BA24A2 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.3% C 0.221 H 335.9°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#BA24A2
RGBrgb(186, 36, 162)
HSLhsl(310, 68%, 44%)
HSVhsv(310, 81%, 73%)
CMYKcmyk(0%, 80.6%, 12.9%, 27.1%)
CIE-LABlab(44.68, 68.77, -33.03)
CIE-LCHlch(44.68, 76.29, 334.34°)
OKLaboklab(55.26% 0.2019 -0.0902)
OKLCHoklch(55.26% 0.221 335.9)
XYZxyz(27.4026, 14.3121, 35.4947)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA24A2 #24BA3C
analogous
#8724BA #BA24A2 #BA2457
triadic
#BA24A2 #A2BA24 #24A2BA
tetradic
#BA24A2 #BA8724 #24BA3C #2457BA
square
#BA24A2 #BA8724 #24BA3C #2457BA
split-complementary
#BA24A2 #57BA24 #24BA87
monochromatic
#531049 #871A75 #BA24A2 #DA41C2 #E474D2

Accessibility & contrast

On white

5.44
#BA24A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#BA24A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA24A2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA24A2#FFFFFF#000000##FFFFFF
##BA24A21.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265CA5
Deuteranopia (green-blind)
#5E719F
Tritanopia (blue-blind)
#C43163
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba24a2;
/* rgb */ color: rgb(186, 36, 162);
/* oklch */ color: oklch(55.3% 0.221 335.9);
Tailwind
colors: {
  custom: {
    50: '#d372be',
    500: '#ba24a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba24a2;
$custom-light: #d372be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba24a2",
  "rgb": {
    "r": 186,
    "g": 36,
    "b": 162
  },
  "hsl": {
    "h": 309.6,
    "s": 67.568,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55256,
    "c": 0.22114,
    "h": 335.9
  },
  "luminance": 0.14309
}

Semantic roles & 50–950 ramp

primary
#BA24A2
secondary
#6ECB7D
accent
#EA593D
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA24A2

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

Preview Lab → · Contrast checker → · Palette generator →

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