#BA26A6#BA26A6

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

Color values

HEX#BA26A6
RGBrgb(186, 38, 166)
HSLhsl(308, 66%, 44%)
HSVhsv(308, 80%, 73%)
CMYKcmyk(0%, 79.6%, 10.8%, 27.1%)
CIE-LABlab(45.05, 68.83, -34.82)
CIE-LCHlch(45.05, 77.14, 333.17°)
OKLaboklab(55.59% 0.2006 -0.0954)
OKLCHoklch(55.59% 0.222 334.6)
XYZxyz(27.8261, 14.5810, 37.4179)
Luminance0.1458 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA26A6 #26BA3A
analogous
#8426BA #BA26A6 #BA265C
triadic
#BA26A6 #A6BA26 #26A6BA
tetradic
#BA26A6 #BA8426 #26BA3A #265CBA
square
#BA26A6 #BA8426 #26BA3A #265CBA
split-complementary
#BA26A6 #5CBA26 #26BA84
monochromatic
#54114B #871C79 #BA26A6 #D944C5 #E377D5

Accessibility & contrast

On white

5.36
#BA26A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#BA26A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA26A6
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA26A6#FFFFFF#000000##FFFFFF
##BA26A61.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235DA9
Deuteranopia (green-blind)
#5D72A3
Tritanopia (blue-blind)
#C33566
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba26a6;
/* rgb */ color: rgb(186, 38, 166);
/* oklch */ color: oklch(55.6% 0.222 334.6);
Tailwind
colors: {
  custom: {
    50: '#d373c1',
    500: '#ba26a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba26a6;
$custom-light: #d373c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba26a6",
  "rgb": {
    "r": 186,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 308.108,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55592,
    "c": 0.22213,
    "h": 334.6
  },
  "luminance": 0.14579
}

Semantic roles & 50–950 ramp

primary
#BA26A6
secondary
#71CB7D
accent
#E9563F
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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