#BA25C6#BA25C6

#BA25C6 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.4% C 0.246 H 324.7°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BA25C6
RGBrgb(186, 37, 198)
HSLhsl(296, 69%, 46%)
HSVhsv(296, 81%, 78%)
CMYKcmyk(6.1%, 81.3%, 0%, 22.4%)
CIE-LABlab(46.77, 74.01, -50.90)
CIE-LCHlch(46.77, 89.83, 325.48°)
OKLaboklab(57.39% 0.2005 -0.1421)
OKLCHoklch(57.39% 0.246 324.7)
XYZxyz(31.1035, 15.8415, 54.8346)
Luminance0.1584 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA25C6 #31C625
analogous
#6925C6 #BA25C6 #C62581
triadic
#BA25C6 #C6BA25 #25C6BA
tetradic
#BA25C6 #C66925 #31C625 #2581C6
square
#BA25C6 #C66925 #31C625 #2581C6
split-complementary
#BA25C6 #81C625 #25C669
monochromatic
#59125F #8A1B92 #BA25C6 #D24BDD #DF7EE7

Accessibility & contrast

On white

5.04
#BA25C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#BA25C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA25C6
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA25C6#FFFFFF#000000##FFFFFF
##BA25C61.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CA
Deuteranopia (green-blind)
#4A75C2
Tritanopia (blue-blind)
#BE4678
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba25c6;
/* rgb */ color: rgb(186, 37, 198);
/* oklch */ color: oklch(57.4% 0.246 324.7);
Tailwind
colors: {
  custom: {
    50: '#d374d8',
    500: '#ba25c6',
    950: '#000000',
  },
}
SCSS
$custom: #ba25c6;
$custom-light: #d374d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba25c6",
  "rgb": {
    "r": 186,
    "g": 37,
    "b": 198
  },
  "hsl": {
    "h": 295.528,
    "s": 68.511,
    "l": 46.078
  },
  "oklch": {
    "l": 0.57386,
    "c": 0.24571,
    "h": 324.7
  },
  "luminance": 0.15839
}

Semantic roles & 50–950 ramp

primary
#BA25C6
secondary
#7ECF77
accent
#EB3C49
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150914
muted
#837B83

Preview Lab

Preview with #BA25C6

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

Preview Lab → · Contrast checker → · Palette generator →

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