#BA24BD#BA24BD

#BA24BD is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.8% C 0.240 H 327.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#BA24BD
RGBrgb(186, 36, 189)
HSLhsl(299, 68%, 44%)
HSVhsv(299, 81%, 74%)
CMYKcmyk(1.6%, 81%, 0%, 25.9%)
CIE-LABlab(46.15, 72.81, -46.65)
CIE-LCHlch(46.15, 86.47, 327.35°)
OKLaboklab(56.78% 0.2018 -0.1297)
OKLCHoklch(56.78% 0.24 327.3)
XYZxyz(30.0654, 15.3772, 49.5188)
Luminance0.1537 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA24BD #27BD24
analogous
#6E24BD #BA24BD #BD2473
triadic
#BA24BD #BDBA24 #24BDBA
tetradic
#BA24BD #BD6E24 #27BD24 #2473BD
square
#BA24BD #BD6E24 #27BD24 #2473BD
split-complementary
#BA24BD #73BD24 #24BD6E
monochromatic
#551056 #871A8A #BA24BD #D843DB #E376E5

Accessibility & contrast

On white

5.15
#BA24BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#BA24BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA24BD
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA24BD#FFFFFF#000000##FFFFFF
##BA24BD1.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#5074B9
Tritanopia (blue-blind)
#C04172
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba24bd;
/* rgb */ color: rgb(186, 36, 189);
/* oklch */ color: oklch(56.8% 0.240 327.3);
Tailwind
colors: {
  custom: {
    50: '#d373d1',
    500: '#ba24bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba24bd;
$custom-light: #d373d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba24bd",
  "rgb": {
    "r": 186,
    "g": 36,
    "b": 189
  },
  "hsl": {
    "h": 298.824,
    "s": 68,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56776,
    "c": 0.2399,
    "h": 327.3
  },
  "luminance": 0.15375
}

Semantic roles & 50–950 ramp

primary
#BA24BD
secondary
#72CC70
accent
#EB3D40
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA24BD

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

Preview Lab → · Contrast checker → · Palette generator →

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