#BA25A4#BA25A4

#BA25A4 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.4% C 0.222 H 335.2°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#BA25A4
RGBrgb(186, 37, 164)
HSLhsl(309, 67%, 44%)
HSVhsv(309, 80%, 73%)
CMYKcmyk(0%, 80.1%, 11.8%, 27.1%)
CIE-LABlab(44.86, 68.80, -33.93)
CIE-LCHlch(44.86, 76.71, 333.75°)
OKLaboklab(55.42% 0.2013 -0.0928)
OKLCHoklch(55.42% 0.222 335.2)
XYZxyz(27.6125, 14.4451, 36.4487)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA25A4 #25BA3B
analogous
#8525BA #BA25A4 #BA2559
triadic
#BA25A4 #A4BA25 #25A4BA
tetradic
#BA25A4 #BA8525 #25BA3B #2559BA
square
#BA25A4 #BA8525 #25BA3B #2559BA
split-complementary
#BA25A4 #59BA25 #25BA85
monochromatic
#54114A #871B77 #BA25A4 #DA43C3 #E476D3

Accessibility & contrast

On white

5.40
#BA25A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#BA25A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA25A4
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA25A4#FFFFFF#000000##FFFFFF
##BA25A41.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255CA7
Deuteranopia (green-blind)
#5E72A1
Tritanopia (blue-blind)
#C33364
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba25a4;
/* rgb */ color: rgb(186, 37, 164);
/* oklch */ color: oklch(55.4% 0.222 335.2);
Tailwind
colors: {
  custom: {
    50: '#d372bf',
    500: '#ba25a4',
    950: '#000000',
  },
}
SCSS
$custom: #ba25a4;
$custom-light: #d372bf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba25a4",
  "rgb": {
    "r": 186,
    "g": 37,
    "b": 164
  },
  "hsl": {
    "h": 308.859,
    "s": 66.816,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55423,
    "c": 0.22164,
    "h": 335.2
  },
  "luminance": 0.14443
}

Semantic roles & 50–950 ramp

primary
#BA25A4
secondary
#70CB7D
accent
#EA573E
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA25A4

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

Preview Lab → · Contrast checker → · Palette generator →

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