#BA25AC#BA25AC

#BA25AC is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.9% C 0.227 H 332.6°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA25AC
RGBrgb(186, 37, 172)
HSLhsl(306, 67%, 44%)
HSVhsv(306, 80%, 73%)
CMYKcmyk(0%, 80.1%, 7.5%, 27.1%)
CIE-LABlab(45.28, 69.96, -38.03)
CIE-LCHlch(45.28, 79.63, 331.47°)
OKLaboklab(55.85% 0.2015 -0.1046)
OKLCHoklch(55.85% 0.227 332.6)
XYZxyz(28.3578, 14.7433, 40.3739)
Luminance0.1474 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA25AC #25BA33
analogous
#7D25BA #BA25AC #BA2561
triadic
#BA25AC #ACBA25 #25ACBA
tetradic
#BA25AC #BA7D25 #25BA33 #2561BA
square
#BA25AC #BA7D25 #25BA33 #2561BA
split-complementary
#BA25AC #61BA25 #25BA7D
monochromatic
#54114E #871B7D #BA25AC #DA43CB #E476D9

Accessibility & contrast

On white

5.32
#BA25AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#BA25AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA25AC
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA25AC#FFFFFF#000000##FFFFFF
##BA25AC1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195EAF
Deuteranopia (green-blind)
#5A72A9
Tritanopia (blue-blind)
#C23869
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba25ac;
/* rgb */ color: rgb(186, 37, 172);
/* oklch */ color: oklch(55.9% 0.227 332.6);
Tailwind
colors: {
  custom: {
    50: '#d373c5',
    500: '#ba25ac',
    950: '#000000',
  },
}
SCSS
$custom: #ba25ac;
$custom-light: #d373c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba25ac",
  "rgb": {
    "r": 186,
    "g": 37,
    "b": 172
  },
  "hsl": {
    "h": 305.638,
    "s": 66.816,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55854,
    "c": 0.22708,
    "h": 332.6
  },
  "luminance": 0.14741
}

Semantic roles & 50–950 ramp

primary
#BA25AC
secondary
#70CB78
accent
#EA4E3E
background
#FDF7FC
surface
#FBEDF8
border
#D4C8D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA25AC

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

Preview Lab → · Contrast checker → · Palette generator →

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