#BA25C4#BA25C4

#BA25C4 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 57.3% C 0.244 H 325.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA25C4
RGBrgb(186, 37, 196)
HSLhsl(296, 68%, 46%)
HSVhsv(296, 81%, 77%)
CMYKcmyk(5.1%, 81.1%, 0%, 23.1%)
CIE-LABlab(46.64, 73.69, -49.94)
CIE-LCHlch(46.64, 89.01, 325.88°)
OKLaboklab(57.26% 0.2006 -0.1393)
OKLCHoklch(57.26% 0.244 325.2)
XYZxyz(30.8743, 15.7499, 53.6277)
Luminance0.1575 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA25C4 #2FC425
analogous
#6A25C4 #BA25C4 #C4257F
triadic
#BA25C4 #C4BA25 #25C4BA
tetradic
#BA25C4 #C46A25 #2FC425 #257FC4
square
#BA25C4 #C46A25 #2FC425 #257FC4
split-complementary
#BA25C4 #7FC425 #25C46A
monochromatic
#58125D #891B91 #BA25C4 #D349DD #E07DE6

Accessibility & contrast

On white

5.06
#BA25C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#BA25C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA25C4
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA25C4#FFFFFF#000000##FFFFFF
##BA25C41.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#4B74C0
Tritanopia (blue-blind)
#BE4577
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba25c4;
/* rgb */ color: rgb(186, 37, 196);
/* oklch */ color: oklch(57.3% 0.244 325.2);
Tailwind
colors: {
  custom: {
    50: '#d374d6',
    500: '#ba25c4',
    950: '#000000',
  },
}
SCSS
$custom: #ba25c4;
$custom-light: #d374d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba25c4",
  "rgb": {
    "r": 186,
    "g": 37,
    "b": 196
  },
  "hsl": {
    "h": 296.226,
    "s": 68.24,
    "l": 45.686
  },
  "oklch": {
    "l": 0.57262,
    "c": 0.24424,
    "h": 325.2
  },
  "luminance": 0.15748
}

Semantic roles & 50–950 ramp

primary
#BA25C4
secondary
#7CCF76
accent
#EB3D48
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150914
muted
#837B83

Preview Lab

Preview with #BA25C4

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

Preview Lab → · Contrast checker → · Palette generator →

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