#BA25A8#BA25A8

#BA25A8 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.6% C 0.224 H 333.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#BA25A8
RGBrgb(186, 37, 168)
HSLhsl(307, 67%, 44%)
HSVhsv(307, 80%, 73%)
CMYKcmyk(0%, 80.1%, 9.7%, 27.1%)
CIE-LABlab(45.07, 69.38, -35.99)
CIE-LCHlch(45.07, 78.16, 332.58°)
OKLaboklab(55.64% 0.2014 -0.0988)
OKLCHoklch(55.64% 0.224 333.9)
XYZxyz(27.9794, 14.5919, 38.3811)
Luminance0.1459 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA25A8 #25BA37
analogous
#8125BA #BA25A8 #BA255D
triadic
#BA25A8 #A8BA25 #25A8BA
tetradic
#BA25A8 #BA8125 #25BA37 #255DBA
square
#BA25A8 #BA8125 #25BA37 #255DBA
split-complementary
#BA25A8 #5DBA25 #25BA81
monochromatic
#54114C #871B7A #BA25A8 #DA43C7 #E476D6

Accessibility & contrast

On white

5.36
#BA25A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#BA25A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA25A8
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA25A8#FFFFFF#000000##FFFFFF
##BA25A81.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5DAB
Deuteranopia (green-blind)
#5C72A5
Tritanopia (blue-blind)
#C33666
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba25a8;
/* rgb */ color: rgb(186, 37, 168);
/* oklch */ color: oklch(55.6% 0.224 333.9);
Tailwind
colors: {
  custom: {
    50: '#d372c2',
    500: '#ba25a8',
    950: '#000000',
  },
}
SCSS
$custom: #ba25a8;
$custom-light: #d372c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba25a8",
  "rgb": {
    "r": 186,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 307.248,
    "s": 66.816,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55636,
    "c": 0.22434,
    "h": 333.9
  },
  "luminance": 0.14589
}

Semantic roles & 50–950 ramp

primary
#BA25A8
secondary
#70CB7B
accent
#EA533E
background
#FDF7FC
surface
#FBEDF8
border
#D4C8D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BA25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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