#BA25A2#BA25A2

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

Color values

HEX#BA25A2
RGBrgb(186, 37, 162)
HSLhsl(310, 67%, 44%)
HSVhsv(310, 80%, 73%)
CMYKcmyk(0%, 80.1%, 12.9%, 27.1%)
CIE-LABlab(44.76, 68.52, -32.89)
CIE-LCHlch(44.76, 76.01, 334.36°)
OKLaboklab(55.32% 0.2012 -0.0899)
OKLCHoklch(55.32% 0.22 335.9)
XYZxyz(27.4333, 14.3735, 35.5050)
Luminance0.1437 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA25A2 #25BA3D
analogous
#8725BA #BA25A2 #BA2558
triadic
#BA25A2 #A2BA25 #25A2BA
tetradic
#BA25A2 #BA8725 #25BA3D #2558BA
square
#BA25A2 #BA8725 #25BA3D #2558BA
split-complementary
#BA25A2 #58BA25 #25BA87
monochromatic
#541149 #871B76 #BA25A2 #DA43C1 #E476D2

Accessibility & contrast

On white

5.42
#BA25A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#BA25A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA25A2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA25A2#FFFFFF#000000##FFFFFF
##BA25A21.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA5
Deuteranopia (green-blind)
#5F729F
Tritanopia (blue-blind)
#C43263
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba25a2;
/* rgb */ color: rgb(186, 37, 162);
/* oklch */ color: oklch(55.3% 0.220 335.9);
Tailwind
colors: {
  custom: {
    50: '#d372be',
    500: '#ba25a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba25a2;
$custom-light: #d372be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba25a2",
  "rgb": {
    "r": 186,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 309.664,
    "s": 66.816,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55318,
    "c": 0.22031,
    "h": 335.9
  },
  "luminance": 0.14371
}

Semantic roles & 50–950 ramp

primary
#BA25A2
secondary
#70CB7E
accent
#EA5A3E
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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