#BA25A6#BA25A6

#BA25A6 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.5% C 0.223 H 334.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#BA25A6
RGBrgb(186, 37, 166)
HSLhsl(308, 67%, 44%)
HSVhsv(308, 80%, 73%)
CMYKcmyk(0%, 80.1%, 10.8%, 27.1%)
CIE-LABlab(44.97, 69.09, -34.96)
CIE-LCHlch(44.97, 77.43, 333.16°)
OKLaboklab(55.53% 0.2014 -0.0958)
OKLCHoklch(55.53% 0.223 334.6)
XYZxyz(27.7945, 14.5180, 37.4074)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA25A6 #25BA39
analogous
#8325BA #BA25A6 #BA255B
triadic
#BA25A6 #A6BA25 #25A6BA
tetradic
#BA25A6 #BA8325 #25BA39 #255BBA
square
#BA25A6 #BA8325 #25BA39 #255BBA
split-complementary
#BA25A6 #5BBA25 #25BA83
monochromatic
#54114B #871B78 #BA25A6 #DA43C5 #E476D5

Accessibility & contrast

On white

5.38
#BA25A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#BA25A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA25A6
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA25A6#FFFFFF#000000##FFFFFF
##BA25A61.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225DA9
Deuteranopia (green-blind)
#5D72A3
Tritanopia (blue-blind)
#C33565
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba25a6;
/* rgb */ color: rgb(186, 37, 166);
/* oklch */ color: oklch(55.5% 0.223 334.6);
Tailwind
colors: {
  custom: {
    50: '#d372c1',
    500: '#ba25a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba25a6;
$custom-light: #d372c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba25a6",
  "rgb": {
    "r": 186,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 308.054,
    "s": 66.816,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55529,
    "c": 0.22298,
    "h": 334.6
  },
  "luminance": 0.14515
}

Semantic roles & 50–950 ramp

primary
#BA25A6
secondary
#70CB7C
accent
#EA553E
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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