#BA25A7#BA25A7

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

Color values

HEX#BA25A7
RGBrgb(186, 37, 167)
HSLhsl(308, 67%, 44%)
HSVhsv(308, 80%, 73%)
CMYKcmyk(0%, 80.1%, 10.2%, 27.1%)
CIE-LABlab(45.02, 69.23, -35.47)
CIE-LCHlch(45.02, 77.79, 332.87°)
OKLaboklab(55.58% 0.2014 -0.0973)
OKLCHoklch(55.58% 0.224 334.2)
XYZxyz(27.8866, 14.5548, 37.8924)
Luminance0.1455 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA25A7 #25BA38
analogous
#8225BA #BA25A7 #BA255C
triadic
#BA25A7 #A7BA25 #25A7BA
tetradic
#BA25A7 #BA8225 #25BA38 #255CBA
square
#BA25A7 #BA8225 #25BA38 #255CBA
split-complementary
#BA25A7 #5CBA25 #25BA82
monochromatic
#54114B #871B79 #BA25A7 #DA43C6 #E476D6

Accessibility & contrast

On white

5.37
#BA25A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#BA25A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA25A7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA25A7#FFFFFF#000000##FFFFFF
##BA25A71.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215DAA
Deuteranopia (green-blind)
#5C72A4
Tritanopia (blue-blind)
#C33566
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba25a7;
/* rgb */ color: rgb(186, 37, 167);
/* oklch */ color: oklch(55.6% 0.224 334.2);
Tailwind
colors: {
  custom: {
    50: '#d372c1',
    500: '#ba25a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba25a7;
$custom-light: #d372c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba25a7",
  "rgb": {
    "r": 186,
    "g": 37,
    "b": 167
  },
  "hsl": {
    "h": 307.651,
    "s": 66.816,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55582,
    "c": 0.22366,
    "h": 334.2
  },
  "luminance": 0.14552
}

Semantic roles & 50–950 ramp

primary
#BA25A7
secondary
#70CB7B
accent
#EA543E
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA25A7

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

Preview Lab → · Contrast checker → · Palette generator →

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