#BA26C7#BA26C7

#BA26C7 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.5% C 0.246 H 324.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#BA26C7
RGBrgb(186, 38, 199)
HSLhsl(295, 68%, 46%)
HSVhsv(295, 81%, 78%)
CMYKcmyk(6.5%, 80.9%, 0%, 22%)
CIE-LABlab(46.91, 73.94, -51.25)
CIE-LCHlch(46.91, 89.96, 325.27°)
OKLaboklab(57.51% 0.1997 -0.1431)
OKLCHoklch(57.51% 0.246 324.4)
XYZxyz(31.2508, 15.9509, 55.4546)
Luminance0.1595 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA26C7 #33C726
analogous
#6A26C7 #BA26C7 #C72684
triadic
#BA26C7 #C7BA26 #26C7BA
tetradic
#BA26C7 #C76A26 #33C726 #2684C7
square
#BA26C7 #C76A26 #33C726 #2684C7
split-complementary
#BA26C7 #84C726 #26C76A
monochromatic
#5A1260 #8A1C94 #BA26C7 #D14DDD #DF81E7

Accessibility & contrast

On white

5.01
#BA26C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#BA26C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA26C7
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA26C7#FFFFFF#000000##FFFFFF
##BA26C71.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#4975C3
Tritanopia (blue-blind)
#BE4778
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba26c7;
/* rgb */ color: rgb(186, 38, 199);
/* oklch */ color: oklch(57.5% 0.246 324.4);
Tailwind
colors: {
  custom: {
    50: '#d374d9',
    500: '#ba26c7',
    950: '#000000',
  },
}
SCSS
$custom: #ba26c7;
$custom-light: #d374d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba26c7",
  "rgb": {
    "r": 186,
    "g": 38,
    "b": 199
  },
  "hsl": {
    "h": 295.155,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57507,
    "c": 0.24569,
    "h": 324.4
  },
  "luminance": 0.15949
}

Semantic roles & 50–950 ramp

primary
#BA26C7
secondary
#80CF79
accent
#EB3D4B
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150915
muted
#837B83

Preview Lab

Preview with #BA26C7

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

Preview Lab → · Contrast checker → · Palette generator →

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